Fix incorrect merge in ECPG code with DECLARE

Michael Paquier <michael@paquier.xyz>

Commit: 1387925a488eb002b59f3b7f58855a4b711b6415
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-08-25T06:16:31Z
Releases: 15.0
Fix incorrect merge in ECPG code with DECLARE

The same condition was repeated twice when comparing the connection used
by existing declared statement with the one coming from a fresh DECLARE
statement.  This had no consequences, but let's keep the code clean.
Oversight in f576de1.

Author: Shenhao Wang
Discussion: https://postgr.es/m/OSBPR01MB42149653BC0AB0A49D23C1B8F2C69@OSBPR01MB4214.jpnprd01.prod.outlook.com
Backpatch-through: 14

Files

PathChange+/−
src/interfaces/ecpg/preproc/ecpg.header modified +0 −1

Discussion