Fix incorrect merge in ECPG code with DECLARE
authorMichael Paquier <michael@paquier.xyz>
Wed, 25 Aug 2021 06:16:31 +0000 (15:16 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 25 Aug 2021 06:16:31 +0000 (15:16 +0900)
commit1387925a488eb002b59f3b7f58855a4b711b6415
tree969913d75a9a8ead4d423fb9fe1039685bafa2a6
parent29b5905470285bf730f6fe7cc5ddb3513d0e6945
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
src/interfaces/ecpg/preproc/ecpg.header