PQprepare question - Mailing list pgsql-interfaces

From Michael Meskes
Subject PQprepare question
Date
Msg-id 20070511111647.GA18711@feivel.credativ.de
Whole thread Raw
Responses Re: PQprepare question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
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!


pgsql-interfaces by date:

Previous
From: Zahid Khan
Date:
Subject: Re: installation of libpq
Next
From: Andrew McNamara
Date:
Subject: PQexecParams and IN query?