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/preproc-cursor.c | |
parent | 525d2cbba2531f15649714121f54620738ffcacb (diff) |
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/preproc-cursor.c')
-rw-r--r-- | src/interfaces/ecpg/test/expected/preproc-cursor.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/test/expected/preproc-cursor.c b/src/interfaces/ecpg/test/expected/preproc-cursor.c index b9bf5410a24..23734752717 100644 --- a/src/interfaces/ecpg/test/expected/preproc-cursor.c +++ b/src/interfaces/ecpg/test/expected/preproc-cursor.c @@ -153,7 +153,8 @@ if (sqlca.sqlcode < 0) exit (1);} /* Dynamic cursorname test with INTO list in FETCH stmts */ strcpy(msg, "declare"); - /* declare $0 cursor for select id , t from t1 */ + ECPGset_var( 0, &( curname1 ), __LINE__);\ + /* declare $0 cursor for select id , t from t1 */ #line 59 "cursor.pgc" @@ -286,7 +287,10 @@ if (sqlca.sqlcode < 0) exit (1);} /* Dynamic cursorname test with INTO list in DECLARE stmt */ strcpy(msg, "declare"); - /* declare $0 cursor for select id , t from t1 */ + ECPGset_var( 3, &( curname2 ), __LINE__);\ + ECPGset_var( 1, ( t ), __LINE__);\ + ECPGset_var( 2, &( id ), __LINE__);\ + /* declare $0 cursor for select id , t from t1 */ #line 100 "cursor.pgc" @@ -435,7 +439,8 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "declare"); - /* declare $0 cursor for $1 */ + ECPGset_var( 4, &( curname3 ), __LINE__);\ + /* declare $0 cursor for $1 */ #line 143 "cursor.pgc" @@ -590,7 +595,8 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "declare"); - /* declare $0 cursor for $1 */ + ECPGset_var( 5, &( curname4 ), __LINE__);\ + /* declare $0 cursor for $1 */ #line 193 "cursor.pgc" |