pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix connection handling for DEALLOCATE and DESCRIBE statements
Date: Fri, 13 Aug 2021 08:46:31 +0000
Message-ID: <E1mESpj-0001Bw-2B@gemulon.postgresql.org> (raw)

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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1mESpj-0001Bw-2B@gemulon.postgresql.org>
Permalink:  ../E1mESpj-0001Bw-2B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mESpj-0001Bw-2B@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: meskes@postgresql.org
  Subject: Re: pgsql: Fix connection handling for DEALLOCATE and DESCRIBE statements
  In-Reply-To: <E1mESpj-0001Bw-2B@gemulon.postgresql.org>
  References: <E1mESpj-0001Bw-2B@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox