From aa6ac352215d435b277711f85985d00a07a5c590 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Tue, 26 Jan 2010 09:07:32 +0000 Subject: Applied patch by Boszormenyi Zoltan to add out-of-scope cursor support to native mode. --- src/interfaces/ecpg/test/expected/sql-binary.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/interfaces/ecpg/test/expected/sql-binary.c') 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 ", -- cgit v1.2.3