pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: PQprepare question
Date: Fri, 11 May 2007 13:16:47 +0200
Message-ID: <20070511111647.GA18711@feivel.credativ.de> (raw)

According to the docs parameters are referenced as $1, $2, and so. Is
there a reason not to use "?" as placeholder? It seems to be quite
common to use "?" and of course a simple counting gives the same
information.

ECPG used to accept "?" notation. Now I started to switch from PQexec to
PQexecParams and at the same time add PQprepare. However, I'd like to
still be able to accept old sources using "?". The question now is, do I
replace the "?"s on the clien side in ecpglib or libpq, or is it
possible to add this in the backend for more general use?

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: <20070511111647.GA18711@feivel.credativ.de>
Permalink:  ../20070511111647.GA18711@feivel.credativ.de/
Also on:    postgresql.org/message-id/20070511111647.GA18711@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
  Subject: Re: PQprepare question
  In-Reply-To: <20070511111647.GA18711@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