diff options
Diffstat (limited to 'src/interfaces/ecpg/test/expected/preproc-whenever.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-whenever.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-whenever.c b/src/interfaces/ecpg/test/expected/preproc-whenever.c index a90de2a7f85..1547a16e99f 100644 --- a/src/interfaces/ecpg/test/expected/preproc-whenever.c +++ b/src/interfaces/ecpg/test/expected/preproc-whenever.c @@ -45,13 +45,13 @@ int main(void) { #line 26 "whenever.pgc" - int i ; + int i ; #line 26 "whenever.pgc" #line 27 "whenever.pgc" - char c [ 6 ] ; + char c [ 6 ] ; #line 27 "whenever.pgc" @@ -64,60 +64,60 @@ int main(void) if (sqlca.sqlcode < 0) sqlprint();} #line 31 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( i int , c char ( 10 ) ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( i int , c char ( 10 ) )", ECPGt_EOIT, ECPGt_EORT); #line 32 "whenever.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 32 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 1 , 'abcdefghij' ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test values ( 1 , 'abcdefghij' )", ECPGt_EOIT, ECPGt_EORT); #line 33 "whenever.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 33 "whenever.pgc" - /* exec sql whenever sql_warning do warn ( ) ; */ + /* exec sql whenever sql_warning do warn ( ) ; */ #line 35 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from test ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from test", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_char,(c),(long)6,(long)1,(6)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 36 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 36 "whenever.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 36 "whenever.pgc" - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 37 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 37 "whenever.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 37 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 39 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 39 "whenever.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 39 "whenever.pgc" - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 40 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 40 "whenever.pgc" if (sqlca.sqlcode < 0) sqlprint();} @@ -127,78 +127,78 @@ if (sqlca.sqlcode < 0) sqlprint();} /* exec sql whenever sqlerror do print ( \"select\" ) ; */ #line 42 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 43 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 43 "whenever.pgc" if (sqlca.sqlcode < 0) print ( "select" );} #line 43 "whenever.pgc" - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 44 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 44 "whenever.pgc" if (sqlca.sqlcode < 0) print ( "select" );} #line 44 "whenever.pgc" - /* exec sql whenever sqlerror call print2 ( ) ; */ + /* exec sql whenever sqlerror call print2 ( ) ; */ #line 46 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 47 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 47 "whenever.pgc" -if (sqlca.sqlcode < 0) print2 ( );} +if (sqlca.sqlcode < 0) print2 ( );} #line 47 "whenever.pgc" - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 48 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 48 "whenever.pgc" -if (sqlca.sqlcode < 0) print2 ( );} +if (sqlca.sqlcode < 0) print2 ( );} #line 48 "whenever.pgc" /* exec sql whenever sqlerror continue ; */ #line 50 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 51 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( );} +if (sqlca.sqlwarn[0] == 'W') warn ( );} #line 51 "whenever.pgc" - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 52 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( );} +if (sqlca.sqlwarn[0] == 'W') warn ( );} #line 52 "whenever.pgc" /* exec sql whenever sqlerror goto error ; */ #line 54 "whenever.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select * from nonexistant", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 55 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 55 "whenever.pgc" if (sqlca.sqlcode < 0) goto error;} @@ -207,10 +207,10 @@ if (sqlca.sqlcode < 0) goto error;} printf("Should not be reachable\n"); error: - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 59 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 59 "whenever.pgc" if (sqlca.sqlcode < 0) goto error;} @@ -222,21 +222,21 @@ if (sqlca.sqlcode < 0) goto error;} /* This cannot fail, thus we don't get an exit value not equal 0. */ /* However, it still test the precompiler output. */ - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 1 ", ECPGt_EOIT, + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 1", ECPGt_EOIT, ECPGt_int,&(i),(long)1,(long)1,sizeof(int), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); #line 64 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 64 "whenever.pgc" if (sqlca.sqlcode < 0) exit (1);} #line 64 "whenever.pgc" - { ECPGtrans(__LINE__, NULL, "rollback "); + { ECPGtrans(__LINE__, NULL, "rollback"); #line 65 "whenever.pgc" -if (sqlca.sqlwarn[0] == 'W') warn ( ); +if (sqlca.sqlwarn[0] == 'W') warn ( ); #line 65 "whenever.pgc" if (sqlca.sqlcode < 0) exit (1);} |