From: Michael Meskes <meskes@postgresql.org>
To: Boszormenyi Zoltan <zb@cybertec.at>
Cc: Michael Meskes <meskes@postgresql.org>
Cc: alexsav23@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION
Date: Mon, 25 Nov 2013 15:14:46 +0100
Message-ID: <20131125141446.GA11608@feivel.credativ.lan> (raw)
In-Reply-To: <52934E51.8030000@cybertec.at>
References: <E1VitxU-00034v-I6@wrigleys.postgresql.org>
<20131124115517.GA1658@feivel.credativ.lan>
<5292145C.5000508@cybertec.at>
<20131125081838.GA16770@feivel.credativ.lan>
<52934E51.8030000@cybertec.at>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Mon, Nov 25, 2013 at 02:19:13PM +0100, Boszormenyi Zoltan wrote:
> Of course. And of course you meant EXEC SQL DEFINE.
Yes. :)
> The attached code throws syntax errors over sizeof(int) and
> sizeof(struct somestruct). I compiled GIT HEAD which contains your fix:
Thanks for spotting this. Using ColId as type name was pretty stupid of me, in particular when a non-terminal var_type already exists.
> The attached patch fixes "sizeof(struct something)" but the
> "simple_type" variant that should also accept
> [signed|unsigned]{char|short|int|long|long long}
> causes 2 shift/reduce problems when processing preproc.y.
That's because with the additional rules we add CHAR and DOUBLE twice. Should be fixed now.
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 gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: meskes@postgresql.org, zb@cybertec.at, alexsav23@gmail.com
Subject: Re: BUG #8608: ECPG: sizeof() in EXEC SQL DECLARE SECTION
In-Reply-To: <20131125141446.GA11608@feivel.credativ.lan>
References: <E1VitxU-00034v-I6@wrigleys.postgresql.org> <20131124115517.GA1658@feivel.credativ.lan> <5292145C.5000508@cybertec.at> <20131125081838.GA16770@feivel.credativ.lan> <52934E51.8030000@cybertec.at> <20131125141446.GA11608@feivel.credativ.lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox