Re: BUG #1165: ECPG can't parse dynamic SQL with indicator

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: ISHIDA Akio <iakio(at)mono-space(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1165: ECPG can't parse dynamic SQL with indicator
Date: 2004-06-17 11:59:08
Message-ID: 20040617115908.GA6974@trantor.fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Jun 14, 2004 at 09:52:20PM -0300, PostgreSQL Bugs List wrote:
> It is a patch.(but I'm not good at using bison)
>
> --- src/interfaces/ecpg/preproc/preproc.y.org Mon Jun 14 11:24:25 2004
> +++ src/interfaces/ecpg/preproc/preproc.y Fri Jun 11 12:54:10 2004
> @@ -5304,6 +5304,7 @@
> add_variable_to_head(&argsinsert,
> new_variable($1, ECPGmake_simple_type(ECPGt_const, length), 0),
> &no_indicator);
> }
> }
> + | civarind { $$ = EMPTY; }
> ;
>

This patch indeed fixes the problem and it allows indicators and thus
NULL values to be entered in every using clause there is. I don't see a
problem with this so I just committed the patch to CVS, HEAD and 7.4.

Sorry, that it did not make it into 7.4.3. This is my fault as I was
too busy to seriously review the patch.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-06-17 12:09:45 BUG #1169: Select table.oid from view seems to loop
Previous Message PostgreSQL Bugs List 2004-06-17 09:30:54 BUG #1168: JDBC compile fails using Java 1.5.0-beta2