PQprepare question

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема PQprepare question
Дата
Msg-id 20070511111647.GA18711@feivel.credativ.de
обсуждение исходный текст
Ответы Re: PQprepare question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Zahid Khan
Дата:
Сообщение: Re: installation of libpq
Следующее
От: Andrew McNamara
Дата:
Сообщение: PQexecParams and IN query?