Skip to content

Commit 0d0644d

Browse files
committed
ecpg: Fix typo
GCC 6 points out the redundant conditions, which were apparently typos. Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
1 parent 7a1d4a2 commit 0d0644d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/interfaces/ecpg/test/compat_informix/describe.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ exec sql end declare section;
150150
exec sql describe st_id2 using descriptor sqlda2;
151151
exec sql describe st_id2 into sqlda3;
152152

153-
if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
153+
if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
154154
exit(1);
155155

156156
strcpy(msg, "get descriptor");

src/interfaces/ecpg/test/expected/compat_informix-describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ if (sqlca.sqlcode < 0) exit (1);}
362362
#line 151 "describe.pgc"
363363

364364

365-
if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
365+
if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
366366
exit(1);
367367

368368
strcpy(msg, "get descriptor");

src/interfaces/ecpg/test/expected/sql-describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ if (sqlca.sqlcode < 0) exit (1);}
360360
#line 151 "describe.pgc"
361361

362362

363-
if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
363+
if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
364364
exit(1);
365365

366366
strcpy(msg, "get descriptor");

src/interfaces/ecpg/test/sql/describe.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ exec sql end declare section;
150150
exec sql describe st_id2 using descriptor sqlda2;
151151
exec sql describe st_id2 into sqlda3;
152152

153-
if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
153+
if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
154154
exit(1);
155155

156156
strcpy(msg, "get descriptor");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy