Re: SQLDA fix for ECPG
Michael Meskes <meskes@postgresql.org>
From: Michael Meskes <meskes@postgresql.org>
To: Boszormenyi Zoltan <zb@cybertec.at>
Cc: PostgreSQL-development Hackers <pgsql-hackers@postgresql.org>, Michael Meskes <meskes@postgresql.org>, Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-12-03T20:49:25Z
Lists: pgsql-hackers
On Sat, Nov 19, 2011 at 10:56:03PM +0100, Boszormenyi Zoltan wrote: > Hopefully last turn in this topic. For NUMERIC types, the safe minimum > alignment is a pointer because there are 5 int members followed by > two pointer members in this struct. I got a crash from this with a lucky > query and dataset. The DECIMAL struct is safe because the digits[] array > is embedded there. > ... Applied, thanks. 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 Jabber: michael.meskes at googlemail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL