Re: PREPARE in ECPG - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: PREPARE in ECPG
Date
Msg-id 20030615105517.GD8944@feivel.fam-meskes.de
Whole thread Raw
In response to PREPARE in ECPG  ("BTS" <bts_postgresql@hotmail.com>)
List pgsql-interfaces
On Fri, May 23, 2003 at 08:55:07AM +0200, BTS wrote:
> The documentation for PostgreSQL 7.3 explains about introducing the optimized PREPARE/EXECUTE statements, but we have
discoveredthis is not implemented (yet) in ECPG (we are using release 7.3.2). See comments in
"ecpg/preproc/preproc.y".
> ...
> - When will the optimized PREPARE/EXECUTE be implemented in ECPG?

As soon as we find a way to do it. I do not see a good way to pass
variables to the backend's prepare statement. We had a longer discussion
on this starting with the different syntax until I understood that you
cannot prepare a statement like:

select * from table where id=:id;

until you already know the value of the variable id, i.e. the backend
does not know a USING clause to specify the variables when executing the
command.

But then I may have missed something. It happened before. :-)

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


pgsql-interfaces by date:

Previous
From: Rudy Lippan
Date:
Subject: Re: Announce: DBD::Pg 1.30_2 (beta)
Next
From: Michael Meskes
Date:
Subject: Re: PREPARE in ECPG