| From: | Michael Meskes <meskes(at)postgresql(dot)org> | 
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org | 
| Subject: | pgsql: Fix connection handling for DEALLOCATE and DESCRIBE statements | 
| Date: | 2021-08-13 08:46:31 | 
| Message-ID: | E1mESpj-0001Bw-2B@gemulon.postgresql.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-committers | 
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
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a945f5527322d18d02990a9772a893f741e7d8df
Modified Files
--------------
src/interfaces/ecpg/preproc/descriptor.c           |  16 ++-
src/interfaces/ecpg/preproc/ecpg.addons            |   8 +-
src/interfaces/ecpg/preproc/ecpg.header            |  12 +-
src/interfaces/ecpg/preproc/ecpg.trailer           |  44 +++----
src/interfaces/ecpg/preproc/ecpg.type              |   3 +-
src/interfaces/ecpg/preproc/output.c               |   9 --
src/interfaces/ecpg/preproc/type.h                 |   6 +
src/interfaces/ecpg/test/expected/sql-declare.c    | 137 ++++++++++++++++++---
.../ecpg/test/expected/sql-declare.stderr          |  56 ++++++---
.../ecpg/test/expected/sql-declare.stdout          |   2 +
src/interfaces/ecpg/test/sql/declare.pgc           |  40 +++++-
11 files changed, 258 insertions(+), 75 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2021-08-13 09:08:37 | Re: pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o | 
| Previous Message | Daniel Gustafsson | 2021-08-13 08:42:51 | pgsql: Fix sslsni connparam boolean check |