diff options
Diffstat (limited to 'src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c index d59c93e4514..2f8ee74971a 100644 --- a/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c +++ b/src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c @@ -114,7 +114,7 @@ static void sql_check(char *fn, char *caller, int ignore) printf("%s\n", errorstring); /* attempt a ROLLBACK */ - { ECPGtrans(__LINE__, NULL, "rollback ");} + { ECPGtrans(__LINE__, NULL, "rollback");} #line 27 "test_informix2.pgc" @@ -145,19 +145,19 @@ int main(void) #line 49 "test_informix2.pgc" - int c ; + int c ; #line 50 "test_informix2.pgc" - timestamp d ; + timestamp d ; #line 51 "test_informix2.pgc" - timestamp e ; + timestamp e ; #line 52 "test_informix2.pgc" - timestamp maxd ; + timestamp maxd ; #line 53 "test_informix2.pgc" - char dbname [ 30 ] ; + char dbname [ 30 ] ; /* exec sql end declare section */ #line 54 "test_informix2.pgc" @@ -186,7 +186,7 @@ if (sqlca.sqlcode < 0) sqlprint();} #line 66 "test_informix2.pgc" - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "create table history ( customerid integer , timestamp timestamp without time zone , action_taken char ( 5 ) , narrative varchar ( 100 ) ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "create table history ( customerid integer , timestamp timestamp without time zone , action_taken char ( 5 ) , narrative varchar ( 100 ) )", ECPGt_EOIT, ECPGt_EORT); #line 68 "test_informix2.pgc" if (sqlca.sqlcode < 0) sqlprint();} @@ -194,7 +194,7 @@ if (sqlca.sqlcode < 0) sqlprint();} sql_check("main", "create", 0); - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into history ( customerid , timestamp , action_taken , narrative ) values ( 1 , '2003-05-07 13:28:34 CEST' , 'test' , 'test' ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into history ( customerid , timestamp , action_taken , narrative ) values ( 1 , '2003-05-07 13:28:34 CEST' , 'test' , 'test' )", ECPGt_EOIT, ECPGt_EORT); #line 73 "test_informix2.pgc" if (sqlca.sqlcode < 0) sqlprint();} @@ -202,7 +202,7 @@ if (sqlca.sqlcode < 0) sqlprint();} sql_check("main", "insert", 0); - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select max ( timestamp ) from history ", ECPGt_EOIT, + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select max ( timestamp ) from history", ECPGt_EOIT, ECPGt_timestamp,&(maxd),(long)1,(long)1,sizeof(timestamp), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 78 "test_informix2.pgc" @@ -212,7 +212,7 @@ if (sqlca.sqlcode < 0) sqlprint();} sql_check("main", "select max", 100); - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select customerid , timestamp from history where timestamp = $1 limit 1 ", + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "select customerid , timestamp from history where timestamp = $1 limit 1", ECPGt_timestamp,&(maxd),(long)1,(long)1,sizeof(timestamp), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_int,&(c),(long)1,(long)1,sizeof(int), @@ -233,7 +233,7 @@ if (sqlca.sqlcode < 0) sqlprint();} free(intvl); c++; - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into history ( customerid , timestamp , action_taken , narrative ) values ( $1 , $2 , 'test' , 'test' ) ", + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into history ( customerid , timestamp , action_taken , narrative ) values ( $1 , $2 , 'test' , 'test' )", ECPGt_int,&(c),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_timestamp,&(e),(long)1,(long)1,sizeof(timestamp), @@ -245,14 +245,14 @@ if (sqlca.sqlcode < 0) sqlprint();} sql_check("main", "update", 0); - { ECPGtrans(__LINE__, NULL, "commit "); + { ECPGtrans(__LINE__, NULL, "commit"); #line 100 "test_informix2.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 100 "test_informix2.pgc" - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table history ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table history", ECPGt_EOIT, ECPGt_EORT); #line 102 "test_informix2.pgc" if (sqlca.sqlcode < 0) sqlprint();} @@ -260,7 +260,7 @@ if (sqlca.sqlcode < 0) sqlprint();} sql_check("main", "drop", 0); - { ECPGtrans(__LINE__, NULL, "commit "); + { ECPGtrans(__LINE__, NULL, "commit"); #line 105 "test_informix2.pgc" if (sqlca.sqlcode < 0) sqlprint();} |