diff options
author | Michael Meskes <meskes@postgresql.org> | 2013-11-03 15:37:34 +0100 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2013-11-03 15:40:19 +0100 |
commit | 4c412ca2e510ecde00e36d226ff933acd6fb477a (patch) | |
tree | 6a321dfb1fe7a9c8dc02c3b98e30fab90f283619 /src/interfaces/ecpg/test/expected/preproc-define.c | |
parent | 8c0116a4c990a2c29c33a0cfd62ebfe4de3620e6 (diff) |
Changed test case slightly so it doesn't have an unused typedef.
Diffstat (limited to 'src/interfaces/ecpg/test/expected/preproc-define.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-define.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-define.c b/src/interfaces/ecpg/test/expected/preproc-define.c index 11ba4a3c022..43df19c3184 100644 --- a/src/interfaces/ecpg/test/expected/preproc-define.c +++ b/src/interfaces/ecpg/test/expected/preproc-define.c @@ -125,16 +125,20 @@ if (sqlca.sqlcode < 0) sqlprint();} for (i=0, j=sqlca.sqlerrd[2]; i<j; i++) { /* exec sql begin declare section */ - + + #line 48 "define.pgc" - char n [ 8 ] , l = letter [ i ] [ 0 ] ; + string n ; #line 49 "define.pgc" + char l = letter [ i ] [ 0 ] ; + +#line 50 "define.pgc" int a = amount [ i ] ; /* exec sql end declare section */ -#line 50 "define.pgc" +#line 51 "define.pgc" strncpy(n, name[i], 8); @@ -142,22 +146,22 @@ if (sqlca.sqlcode < 0) sqlprint();} } { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table test", ECPGt_EOIT, ECPGt_EORT); -#line 56 "define.pgc" +#line 57 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} -#line 56 "define.pgc" +#line 57 "define.pgc" { ECPGtrans(__LINE__, NULL, "commit"); -#line 57 "define.pgc" +#line 58 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} -#line 57 "define.pgc" +#line 58 "define.pgc" { ECPGdisconnect(__LINE__, "CURRENT"); -#line 58 "define.pgc" +#line 59 "define.pgc" if (sqlca.sqlcode < 0) sqlprint();} -#line 58 "define.pgc" +#line 59 "define.pgc" return (0); |