From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Jan Wieck <janwieck(at)yahoo(dot)com>, Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: the parsing of parameters |
Date: | 2002-05-10 16:09:05 |
Message-ID: | 20020510180905.D16905@zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, May 10, 2002 at 11:17:39AM -0400, Tom Lane wrote:
> Jan Wieck <janwieck(at)yahoo(dot)com> writes:
> > Tom Lane wrote:
> >> For this particular application, at least, I do not see the value ...
> >> in fact this seems more likely to break stuff than help. If the
> >> application does not know what the datatypes are supposed to be,
> >> how is it going to call the prepared statement?
>
> > Right now using UNKNOWN_OID in that place leads to a parse
> > error, what makes me feel absolutely comfortable that there
> > will be nobody using it today. So what kind of "break" are
> > you talking about?
>
> What I mean is that I don't see how an application is going to use
> PREPARE/EXECUTE without knowing the data types of the values it
> has to send for EXECUTE. Inside SPI you could maybe do it, since
> the calling code can examine the modified argtype array, but there
> is no such back-communication channel for PREPARE. This holds
> for both textual and binary kinds of EXECUTE: how do you know what
> you are supposed to send?
In my original PREPARE/EXECUTE patch (it works in 7.1):
PREPARE name AS select * from tab where data=$1 USING text;
EXECUTE name USING 'nice text data';
IMHO is possible think about
EXECUTE name USING 'nice text'::text;
or other cast methods.
Karel
--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-05-10 16:31:06 | Re: FW: Cygwin PostgreSQL Information and Suggestions |
Previous Message | Tom Lane | 2002-05-10 16:00:38 | Re: Threads vs processes - The Apache Way (Re: Path to PostgreSQL |