]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix connection handling for DEALLOCATE and DESCRIBE statements
authorMichael Meskes <meskes@postgresql.org>
Fri, 13 Aug 2021 08:34:04 +0000 (10:34 +0200)
committerMichael Meskes <meskes@postgresql.org>
Fri, 13 Aug 2021 08:45:08 +0000 (10:45 +0200)
commit399edafa2aba562a8013fbe039f3cbf3a41a436e
treeab6b4389af421ea0982fa1da9c7d9f92dade93d6
parent512f4ca6c6b5d2e3a1620288048ccaa712121e12
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
src/interfaces/ecpg/preproc/descriptor.c
src/interfaces/ecpg/preproc/ecpg.addons
src/interfaces/ecpg/preproc/ecpg.header
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.type
src/interfaces/ecpg/preproc/output.c
src/interfaces/ecpg/preproc/type.h
src/interfaces/ecpg/test/expected/sql-declare.c
src/interfaces/ecpg/test/expected/sql-declare.stderr
src/interfaces/ecpg/test/expected/sql-declare.stdout
src/interfaces/ecpg/test/sql/declare.pgc