Skip site navigation (1) Skip section navigation (2)

Re: PQprepare question

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>,PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: PQprepare question
Date: 2007-05-11 13:48:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On Fri, May 11, 2007 at 09:08:01AM -0400, Tom Lane wrote:
> Michael Meskes <meskes(at)postgresql(dot)org> writes:
> > According to the docs parameters are referenced as $1, $2, and so. Is
> > there a reason not to use "?" as placeholder?
> It's an operator name.

Ah, didn't notice. But that means that ecpg should not accept "?" as
placeholder either as this is prone to give errors depending on the
usage right? I'm not sure how often this is used with external strings
that are prepared. The internal stuff could easily be changed.

Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
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


pgsql-interfaces by date

Next:From: Tom LaneDate: 2007-05-11 13:52:55
Subject: Re: PQprepare question
Previous:From: Gregory StarkDate: 2007-05-11 13:32:22
Subject: Re: PQprepare question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group