pgsql: Fix thinko in new ECPG "PREPARE AS" code.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix thinko in new ECPG "PREPARE AS" code.
Date: 2019-05-26 14:06:54
Message-ID: E1hUtna-0001qV-ST@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix thinko in new ECPG "PREPARE AS" code.

ecpg_register_prepared_stmt() is pretty obviously checking the wrong
variable while trying to detect malloc failure. Error in commit
a1dc6ab46, spotted by Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/331695a4d9ca40864240aca721dc588a206ff395

Modified Files
--------------
src/interfaces/ecpg/ecpglib/prepare.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-05-26 14:39:19 pgsql: Fix more thinkos in new ECPG "PREPARE AS" code.
Previous Message Amit Kapila 2019-05-26 13:01:14 pgsql: Fix typos.