Fix connection handling for DEALLOCATE and DESCRIBE statements
Michael Meskes <meskes@postgresql.org>
Fix connection handling for DEALLOCATE and DESCRIBE statements After binding a statement to a connection with DECLARE STATEMENT the connection was still not used for DEALLOCATE and DESCRIBE statements. This patch fixes that, adds a missing warning and cleans up the code. Author: Hayato Kuroda Reviewed-by: Kyotaro Horiguchi, Michael Paquier Discussion: https://postgr.es/m/TYAPR01MB5866BA57688DF2770E2F95C6F5069%40TYAPR01MB5866.jpnprd01.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/preproc/descriptor.c | modified | +14 −2 |
| src/interfaces/ecpg/preproc/ecpg.addons | modified | +5 −3 |
| src/interfaces/ecpg/preproc/ecpg.header | modified | +7 −5 |
| src/interfaces/ecpg/preproc/ecpg.trailer | modified | +23 −21 |
| src/interfaces/ecpg/preproc/ecpg.type | modified | +2 −1 |
| src/interfaces/ecpg/preproc/output.c | modified | +0 −9 |
| src/interfaces/ecpg/preproc/type.h | modified | +6 −0 |
| src/interfaces/ecpg/test/expected/sql-declare.c | modified | +122 −15 |
| src/interfaces/ecpg/test/expected/sql-declare.stderr | modified | +42 −14 |
| src/interfaces/ecpg/test/expected/sql-declare.stdout | modified | +2 −0 |
| src/interfaces/ecpg/test/sql/declare.pgc | modified | +35 −5 |
Discussion
- ECPG bug fix: DECALRE STATEMENT and DEALLOCATE, DESCRIBE 71 messages · 2021-06-25 → 2021-08-25