Re: ECPG support for struct in INTO list - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: ECPG support for struct in INTO list
Date
Msg-id 20090805084256.GA27331@feivel.credativ.lan
Whole thread Raw
In response to Re: ECPG support for struct in INTO list  (Boszormenyi Zoltan <zb@cybertec.at>)
Responses Re: ECPG support for struct in INTO list  (Boszormenyi Zoltan <zb@cybertec.at>)
List pgsql-hackers
On Fri, Jul 31, 2009 at 11:42:33AM +0200, Boszormenyi Zoltan wrote:
> made me look around more. Find the attached patch I came up with.
> Now my previous test code works and produces similar C code
> as without "-C INFORMIX". Can it be this simple?

Unfortunately it is not.

> Can you see anything wrong with this approach?

Yes, please look at the slightly changed test version that is attached to this email.

If you use e.g. int instead of MYTYPE, it works nicely, but not with MYTYPE.
Please see the comments in adjust_informix to see what this function is
supposed to do.

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
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Shipping documentation untarred
Next
From: Boszormenyi Zoltan
Date:
Subject: Re: ECPG support for struct in INTO list