Fix thinko in new ECPG "PREPARE AS" code.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 331695a4d9ca40864240aca721dc588a206ff395
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-05-26T14:06:37Z
Releases: 12.0
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.

Files

PathChange+/−
src/interfaces/ecpg/ecpglib/prepare.c modified +1 −1