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

From Boszormenyi Zoltan
Subject Re: ECPG patch 4.1, out-of-scope cursor support in native mode
Date
Msg-id 4B55EFD6.3020104@cybertec.at
Whole thread Raw
In response to Re: ECPG patch 4.1, out-of-scope cursor support in native mode  (Michael Meskes <meskes@postgresql.org>)
Responses Re: ECPG patch 4.1, out-of-scope cursor support in native mode  (Boszormenyi Zoltan <zb@cybertec.at>)
List pgsql-hackers
Michael Meskes írta:
> Zoltan,
>
> while testing your patch I went through the test cases and found this in outofscope.pgc:
>
>   
>> + #include <inttypes.h>
>>     
>
> As we know by now this won't work. :-)
>   

Okay, I will fix it. :-) I forgot it's in there as well.

> Besides, would you mind simplifying the test case a little bit? There is no
> need to have it test all the sqlda stuff, too. I don't mind having two cases
> testing sqlda but this makes testing out of scope variable handling more
> difficult especially with sqlda being a rather complex system with different
> struct definitions and so on.
>   

Okay.

> Also I wonder why you added struct.pgc. It seems to build and run without a
> problem on a non-patched system. Is it an additional test that just happened to
> be included here?
>   

It was included in there because the first symptom
that lead to this patch under Informix compat mode that
a simple struct variable wasn't properly unrolled because
adjust_informix() lost informiation about the type.
Did I accidentally move it to native mode? I'll move it back.

I will send an updated patch.

Thanks,
Zoltán Böszörményi

-- 
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/



pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: Mammoth in Core?
Next
From: Robert Haas
Date:
Subject: Re: quoting psql varible as identifier