Fixed auto-prepare to not try preparing statements that are not preparable. Bug
Michael Meskes <meskes@postgresql.org>
Fixed auto-prepare to not try preparing statements that are not preparable. Bug found and solved by Boszormenyi Zoltan <zb@cybertec.at>, some small adjustments by me.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/preproc/ecpg.addons | modified | +5 −4 |
| src/interfaces/ecpg/preproc/output.c | modified | +14 −6 |
| src/interfaces/ecpg/test/expected/preproc-autoprep.c | modified | +116 −47 |
| src/interfaces/ecpg/test/expected/preproc-autoprep.stderr | modified | +87 −61 |
| src/interfaces/ecpg/test/expected/preproc-autoprep.stdout | modified | +4 −0 |
| src/interfaces/ecpg/test/expected/sql-desc.c | modified | +4 −4 |
| src/interfaces/ecpg/test/expected/sql-execute.c | modified | +5 −5 |
| src/interfaces/ecpg/test/expected/sql-oldexec.c | modified | +4 −4 |
| src/interfaces/ecpg/test/expected/thread-prep.c | modified | +1 −1 |
| src/interfaces/ecpg/test/expected/thread-prep.stdout | modified | +0 −1 |
| src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout | modified | +1 −1 |
| src/interfaces/ecpg/test/expected/thread-thread.stdout | modified | +1 −1 |
| src/interfaces/ecpg/test/preproc/autoprep.pgc | modified | +20 −0 |