diff options
author | Michael Meskes <meskes@postgresql.org> | 2010-01-26 09:07:32 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2010-01-26 09:07:32 +0000 |
commit | aa6ac352215d435b277711f85985d00a07a5c590 (patch) | |
tree | 9034ebed7c71dd9a0ed8e307f8e8ce92c8cb010e /src/interfaces/ecpg/test/expected/sql-binary.c | |
parent | 525d2cbba2531f15649714121f54620738ffcacb (diff) | |
download | postgresql-aa6ac352215d435b277711f85985d00a07a5c590.tar.gz postgresql-aa6ac352215d435b277711f85985d00a07a5c590.zip |
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add out-of-scope cursor support to native mode.
Diffstat (limited to 'src/interfaces/ecpg/test/expected/sql-binary.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/sql-binary.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/test/expected/sql-binary.c b/src/interfaces/ecpg/test/expected/sql-binary.c index 00fd70224e5..64497b6a72c 100644 --- a/src/interfaces/ecpg/test/expected/sql-binary.c +++ b/src/interfaces/ecpg/test/expected/sql-binary.c @@ -107,7 +107,8 @@ main (void) exit (sqlca.sqlcode); } - /* declare C cursor for select name , accs , byte from empl where idnum = $1 */ + ECPGset_var( 0, &( empl.idnum ), __LINE__);\ + /* declare C cursor for select name , accs , byte from empl where idnum = $1 */ #line 58 "binary.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare C cursor for select name , accs , byte from empl where idnum = $1 ", @@ -133,7 +134,8 @@ main (void) printf ("name=%s, accs=%d byte=%s\n", empl.name, empl.accs, empl.byte); memset(empl.name, 0, 21L); - /* declare B binary cursor for select name , accs , byte from empl where idnum = $1 */ + ECPGset_var( 1, &( empl.idnum ), __LINE__);\ + /* declare B binary cursor for select name , accs , byte from empl where idnum = $1 */ #line 70 "binary.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare B binary cursor for select name , accs , byte from empl where idnum = $1 ", @@ -166,7 +168,8 @@ main (void) printf("(%o)", (unsigned char)empl.byte[i]); printf("\n"); - /* declare A binary cursor for select byte from empl where idnum = $1 */ + ECPGset_var( 2, &( empl.idnum ), __LINE__);\ + /* declare A binary cursor for select byte from empl where idnum = $1 */ #line 87 "binary.pgc" { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare A binary cursor for select byte from empl where idnum = $1 ", |