Re: ECPG patch 4.1, out-of-scope cursor support in native mode - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: ECPG patch 4.1, out-of-scope cursor support in native mode
Date
Msg-id 20100122145237.GA5898@feivel.credativ.lan
Whole thread Raw
In response to Re: ECPG patch 4.1, out-of-scope cursor support in native mode  (Boszormenyi Zoltan <zb@cybertec.at>)
Responses Re: ECPG patch 4.1, out-of-scope cursor support in native mode  (Boszormenyi Zoltan <zb@cybertec.at>)
List 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


pgsql-hackers by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: 8.5 vs. 9.0, Postgres vs. PostgreSQL
Next
From: Simon Riggs
Date:
Subject: Re: primary key error message