From: Michael Meskes <meskes@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change error handling of out of scope variables in ecpg.
Date: Wed, 30 Jan 2019 13:37:55 +0000
Message-ID: <E1goq3v-0001Df-PR@gemulon.postgresql.org> (raw)
Change error handling of out of scope variables in ecpg.
The function called can result in an out of memory error that subsequently was
disregarded. Instead it should set the appropriate SQL error variables and be
checked by whatever whenever statement is defined.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7ea38f045dad6bbb7fbe807f2486df7370bc0b0f
Modified Files
--------------
src/interfaces/ecpg/ecpglib/misc.c | 11 ++++++++++
src/interfaces/ecpg/preproc/ecpg.addons | 17 ++++++---------
src/interfaces/ecpg/preproc/ecpg.trailer | 6 +-----
src/interfaces/ecpg/preproc/output.c | 4 +++-
src/interfaces/ecpg/preproc/preproc_extern.h | 2 +-
.../ecpg/test/expected/compat_informix-sqlda.c | 4 ++--
.../test/expected/compat_informix-test_informix.c | 7 +++++-
src/interfaces/ecpg/test/expected/preproc-cursor.c | 25 ++++++++++++++++++++++
.../ecpg/test/expected/preproc-outofscope.c | 5 +++++
src/interfaces/ecpg/test/expected/sql-binary.c | 15 +++++++++++++
10 files changed, 75 insertions(+), 21 deletions(-)
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: Change error handling of out of scope variables in ecpg.
In-Reply-To: <E1goq3v-0001Df-PR@gemulon.postgresql.org>
References: <E1goq3v-0001Df-PR@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