pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Meskes <meskes@postgresql.org>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: PQprepare question
Date: Fri, 11 May 2007 15:48:17 +0200
Message-ID: <20070511134817.GA9188@feivel.credativ.de> (raw)
In-Reply-To: <17526.1178888881@sss.pgh.pa.us>
References: <20070511111647.GA18711@feivel.credativ.de>
	<17526.1178888881@sss.pgh.pa.us>

On Fri, May 11, 2007 at 09:08:01AM -0400, Tom Lane wrote:
> Michael Meskes <meskes@postgresql.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
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!



view thread (6+ messages)  latest in thread

Message-ID: <20070511134817.GA9188@feivel.credativ.de>
Permalink:  ../20070511134817.GA9188@feivel.credativ.de/
Also on:    postgresql.org/message-id/20070511134817.GA9188@feivel.credativ.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, tgl@sss.pgh.pa.us
  Subject: Re: PQprepare question
  In-Reply-To: <20070511134817.GA9188@feivel.credativ.de>

* 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