Split ECPGdo() in constituent parts
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 16 Jan 2014 19:36:41 +0000 (16:36 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 16 Jan 2014 19:36:41 +0000 (16:36 -0300)
commit3291301385ee5e9ca38d70a68b93ce31cc2674ac
tree6b7e3fcbd7c58d57413d8e922f2bd63ee8ddf69b
parent8ba288da5dce7bd890dd968ddb9664931099b8c5
Split ECPGdo() in constituent parts

This splits ECPGdo() into ecpg_prologue(), ecpg_do() and
ecpg_epilogue(), and renames free_params() into ecpg_free_params() and
exports it.  This makes it possible for future code to use these
routines for their own purposes.

There is no user-visible functionality change here, only code
reorganization.

Zoltán Böszörményi

Reviewed by Antonin Houska.  Larger, older versions of this patch were
reviewed by Noah Misch and Michael Meskes.
20 files changed:
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/extern.h
src/interfaces/ecpg/test/expected/compat_informix-rnull.stderr
src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr
src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr
src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr
src/interfaces/ecpg/test/expected/preproc-autoprep.stderr
src/interfaces/ecpg/test/expected/preproc-type.stderr
src/interfaces/ecpg/test/expected/sql-array.stderr
src/interfaces/ecpg/test/expected/sql-binary.stderr
src/interfaces/ecpg/test/expected/sql-code100.stderr
src/interfaces/ecpg/test/expected/sql-desc.stderr
src/interfaces/ecpg/test/expected/sql-execute.stderr
src/interfaces/ecpg/test/expected/sql-fetch.stderr
src/interfaces/ecpg/test/expected/sql-indicators.stderr
src/interfaces/ecpg/test/expected/sql-oldexec.stderr
src/interfaces/ecpg/test/expected/sql-sqlda.stderr