diff options
Diffstat (limited to 'src/interfaces/ecpg/test/expected/preproc-define.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-define.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-define.c b/src/interfaces/ecpg/test/expected/preproc-define.c index c02165cfa7c..11ba4a3c022 100644 --- a/src/interfaces/ecpg/test/expected/preproc-define.c +++ b/src/interfaces/ecpg/test/expected/preproc-define.c @@ -30,7 +30,7 @@ -/* exec sql type intarray is int [ 6 ] */ +/* exec sql type intarray is int [ 6 ] */ #line 13 "define.pgc" typedef int intarray[ 6]; @@ -40,27 +40,27 @@ main(void) { /* exec sql begin declare section */ - typedef char string [ 8 ]; + typedef char string [ 8 ]; #line 21 "define.pgc" - + #line 22 "define.pgc" - intarray amount ; + intarray amount ; #line 23 "define.pgc" - char name [ 6 ] [ 8 ] ; + char name [ 6 ] [ 8 ] ; #line 24 "define.pgc" - char letter [ 6 ] [ 1 ] ; + char letter [ 6 ] [ 1 ] ; #if 0 #line 26 "define.pgc" - int not_used ; + int not_used ; #endif /* exec sql end declare section */ @@ -77,39 +77,39 @@ if (sqlca.sqlcode < 0) sqlprint();} #line 34 "define.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( name char ( 8 ) , amount int , letter char ( 1 ) ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table test ( name char ( 8 ) , amount int , letter char ( 1 ) )", ECPGt_EOIT, ECPGt_EORT); #line 36 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 36 "define.pgc" - { ECPGtrans(__LINE__, NULL, "commit "); + { ECPGtrans(__LINE__, NULL, "commit"); #line 37 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 37 "define.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into Test ( name , amount , letter ) values ( 'false' , 1 , 'f' ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into Test ( name , amount , letter ) values ( 'false' , 1 , 'f' )", ECPGt_EOIT, ECPGt_EORT); #line 39 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 39 "define.pgc" - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( name , amount , letter ) values ( 'true' , 2 , 't' ) ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into test ( name , amount , letter ) values ( 'true' , 2 , 't' )", ECPGt_EOIT, ECPGt_EORT); #line 40 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 40 "define.pgc" - { ECPGtrans(__LINE__, NULL, "commit "); + { ECPGtrans(__LINE__, NULL, "commit"); #line 41 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 41 "define.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_char,(name),(long)8,(long)6,(8)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_int,(amount),(long)1,(long)6,sizeof(int), @@ -129,10 +129,10 @@ if (sqlca.sqlcode < 0) sqlprint();} #line 48 "define.pgc" - char n [ 8 ] , l = letter [ i ] [ 0 ] ; + char n [ 8 ] , l = letter [ i ] [ 0 ] ; #line 49 "define.pgc" - int a = amount [ i ] ; + int a = amount [ i ] ; /* exec sql end declare section */ #line 50 "define.pgc" @@ -141,13 +141,13 @@ if (sqlca.sqlcode < 0) sqlprint();} printf("name[%d]=%8.8s\tamount[%d]=%d\tletter[%d]=%c\n", i, n, i, a, i, l); } - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test ", ECPGt_EOIT, ECPGt_EORT); + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT); #line 56 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} #line 56 "define.pgc" - { ECPGtrans(__LINE__, NULL, "commit "); + { ECPGtrans(__LINE__, NULL, "commit"); #line 57 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} |