Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d0644d

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 parent7a1d4a2 commit0d0644d

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)

[8]ページ先頭

©2009-2025 Movatter.jp