ecpg: Fix typo
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 20 Feb 2016 04:07:46 +0000 (23:07 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 9 Mar 2016 00:41:51 +0000 (19:41 -0500)
GCC 6 points out the redundant conditions, which were apparently typos.

Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
src/interfaces/ecpg/test/compat_informix/describe.pgc
src/interfaces/ecpg/test/expected/compat_informix-describe.c
src/interfaces/ecpg/test/expected/sql-describe.c
src/interfaces/ecpg/test/sql/describe.pgc

index 1836ac3843d133afdb1ead746af7d3a6109c52f3..6fcccc6ab4dfbb2ec0229c77e0c42648d8651f2c 100644 (file)
@@ -150,7 +150,7 @@ exec sql end declare section;
        exec sql describe st_id2 using descriptor sqlda2;
        exec sql describe st_id2 into sqlda3;
 
-       if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
+       if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
                exit(1);
 
        strcpy(msg, "get descriptor");
index 5951ae6c82db69643ccef101ff045c9f437b848a..9eb176ef1d5bcfb5a3663b7d4ea4c7c2c844484d 100644 (file)
@@ -362,7 +362,7 @@ if (sqlca.sqlcode < 0) exit (1);}
 #line 151 "describe.pgc"
 
 
-       if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
+       if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
                exit(1);
 
        strcpy(msg, "get descriptor");
index 356f5870e8cbd4224b12f91b525207260ae17f98..d0e39e93565cb1db4ce62110d7a9dae5b76f3071 100644 (file)
@@ -360,7 +360,7 @@ if (sqlca.sqlcode < 0) exit (1);}
 #line 151 "describe.pgc"
 
 
-       if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
+       if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
                exit(1);
 
        strcpy(msg, "get descriptor");
index cd52c8220be8005d15549ac6639601d20c203feb..b95ab351bd06967f60e9f010b46ffd822495fc88 100644 (file)
@@ -150,7 +150,7 @@ exec sql end declare section;
        exec sql describe st_id2 using descriptor sqlda2;
        exec sql describe st_id2 into sqlda3;
 
-       if (sqlda1 == NULL || sqlda1 == NULL || sqlda2 == NULL)
+       if (sqlda1 == NULL || sqlda2 == NULL || sqlda3 == NULL)
                exit(1);
 
        strcpy(msg, "get descriptor");