pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of structure for bytea data type in ECPG
Date: Mon, 27 Jul 2020 01:30:08 +0000
Message-ID: <E1jzrxw-0004ow-Fl@gemulon.postgresql.org> (raw)

Fix handling of structure for bytea data type in ECPG

Some code paths dedicated to bytea used the structure for varchar.  This
did not lead to any actual bugs, as bytea and varchar have the same
definition, but it could become a trap if one of these definitions
changes for a new feature or a bug fix.

Issue introduced by 050710b.

Author: Shenhao Wang
Reviewed-by: Vignesh C, Michael Paquier
Discussion: https://postgr.es/m/07ac7dee1efc44f99d7f53a074420177@G08CNEXMBPEKD06.g08.fujitsu.local
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e971357961f2bf5bddebb3f68ba8b55954709486

Modified Files
--------------
src/interfaces/ecpg/ecpglib/data.c       | 4 ++--
src/interfaces/ecpg/ecpglib/descriptor.c | 4 ++--
src/interfaces/ecpg/ecpglib/execute.c    | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1jzrxw-0004ow-Fl@gemulon.postgresql.org>
Permalink:  ../E1jzrxw-0004ow-Fl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jzrxw-0004ow-Fl@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: michael@paquier.xyz
  Subject: Re: pgsql: Fix handling of structure for bytea data type in ECPG
  In-Reply-To: <E1jzrxw-0004ow-Fl@gemulon.postgresql.org>
  References: <E1jzrxw-0004ow-Fl@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