pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix incorrect results for numeric data passed through an ECPG SQ
Date: Tue, 13 Nov 2018 20:46:32 +0000
Message-ID: <E1gMfZw-0001Uq-6B@gemulon.postgresql.org> (raw)

Fix incorrect results for numeric data passed through an ECPG SQLDA.

Numeric values with leading zeroes were incorrectly copied into a
SQLDA (SQL Descriptor Area), leading to wrong results in ECPG programs.

Report and patch by Daisuke Higuchi.  Back-patch to all supported
versions.

Discussion: https://postgr.es/m/1803D792815FC24D871C00D17AE95905C71161@g01jpexmbkw24

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/68393f3fd6b91f1f61a2bdb4e59eb439256eeb65

Modified Files
--------------
src/interfaces/ecpg/ecpglib/sqlda.c                |  34 +-
src/interfaces/ecpg/test/expected/sql-sqlda.c      | 108 ++---
src/interfaces/ecpg/test/expected/sql-sqlda.stderr | 436 +++++++++++++--------
src/interfaces/ecpg/test/expected/sql-sqlda.stdout |  28 ++
src/interfaces/ecpg/test/sql/sqlda.pgc             |   4 +-
5 files changed, 380 insertions(+), 230 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gMfZw-0001Uq-6B@gemulon.postgresql.org>
Permalink:  ../E1gMfZw-0001Uq-6B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gMfZw-0001Uq-6B@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix incorrect results for numeric data passed through an ECPG SQ
  In-Reply-To: <E1gMfZw-0001Uq-6B@gemulon.postgresql.org>
  References: <E1gMfZw-0001Uq-6B@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