diff options
author | Michael Meskes <meskes@postgresql.org> | 2012-02-10 03:58:57 +0100 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2012-02-13 15:49:50 +0100 |
commit | 9a4880a0dd3cc94770aae2d372302642990c9fc1 (patch) | |
tree | e199abd5bd6dba392d1349fdec80c3620312d4a4 /src/interfaces/ecpg/test/expected/preproc-variable.c | |
parent | 21320763a39994021a4ff045ff66f7204bdb6d78 (diff) | |
download | postgresql-9a4880a0dd3cc94770aae2d372302642990c9fc1.tar.gz postgresql-9a4880a0dd3cc94770aae2d372302642990c9fc1.zip |
Do not use the variable name when defining a varchar structure in ecpg.
With a unique counter being added anyway, there is no need anymore to have the variable name listed, too.
Diffstat (limited to 'src/interfaces/ecpg/test/expected/preproc-variable.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-variable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-variable.c b/src/interfaces/ecpg/test/expected/preproc-variable.c index ca3032faca7..32e9778ee68 100644 --- a/src/interfaces/ecpg/test/expected/preproc-variable.c +++ b/src/interfaces/ecpg/test/expected/preproc-variable.c @@ -75,7 +75,7 @@ main (void) #line 27 "variable.pgc" struct personal_struct { #line 25 "variable.pgc" - struct varchar_name_1 { int len; char arr[ BUFFERSIZ ]; } name ; + struct varchar_1 { int len; char arr[ BUFFERSIZ ]; } name ; #line 26 "variable.pgc" struct birthinfo birth ; @@ -94,10 +94,10 @@ main (void) ind ind_children ; struct t1 { #line 32 "variable.pgc" - struct varchar_name_2 { int len; char arr[ BUFFERSIZ ]; } name ; + struct varchar_2 { int len; char arr[ BUFFERSIZ ]; } name ; } ; struct t2 { #line 32 "variable.pgc" - struct varchar_name_3 { int len; char arr[ BUFFERSIZ ]; } name ; + struct varchar_3 { int len; char arr[ BUFFERSIZ ]; } name ; } ;/* exec sql end declare section */ #line 33 "variable.pgc" @@ -207,7 +207,7 @@ if (sqlca.sqlcode < 0) exit (1);} while (1) { strcpy(msg, "fetch"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch cur", ECPGt_EOIT, - ECPGt_varchar,&(p->name),(long)BUFFERSIZ,(long)1,sizeof(struct varchar_name_1), + ECPGt_varchar,&(p->name),(long)BUFFERSIZ,(long)1,sizeof(struct varchar_1), ECPGt_int,&(i->ind_name),(long)1,(long)1,sizeof(int), ECPGt_long,&(p->birth.born),(long)1,(long)1,sizeof(long), ECPGt_long,&(i->ind_birth.born),(long)1,(long)1,sizeof(long), |