Re: ECPG patch 4.1, out-of-scope cursor support in native mode

Michael Meskes <meskes@postgresql.org>

From: Michael Meskes <meskes@postgresql.org>
To: Boszormenyi Zoltan <zb@cybertec.at>
Cc: Michael Meskes <meskes@postgresql.org>, pgsql-hackers@postgresql.org, Hans-Juergen Schoenig <hs@cybertec.at>
Date: 2010-01-22T14:52:37Z
Lists: pgsql-hackers
> diff -dcrpN pgsql.orig/src/interfaces/ecpg/test/expected/compat_informix-struct.c pgsql.4.1/src/interfaces/ecpg/test/expected/compat_informix-struct.c
> ...
> + 	/* Test DECLARE ... SELECT ... INTO with struct type */
> + 
> + 	ECPGset_var( 0, &( myvar ), __LINE__);\
> +  ECPGset_var( 1, &( mynullvar ), __LINE__);\
> +  ECPG_informix_reset_sqlca(); /* declare mycur cursor for select * from a1 */
> + #line 45 "struct.pgc"
> + 
> + 	{ ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "declare mycur cursor for select * from a1", ECPGt_EOIT, 
> + 	ECPGt_int,&(myvar.id),(long)1,(long)1,sizeof(int), 
> ...

Why does the preproc spit out ECPGset_var's but no ECPGget_var's in this test case? 

Michael

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber meskes@jabber.org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL