Re: placeholder syntax

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: placeholder syntax
Дата
Msg-id 87brjcstpu.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: placeholder syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: placeholder syntax  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Abhijit Menon-Sen <ams@wiw.org> writes:
> > Should Postgres accept ? as a placeholder?
> 
> In short, I think this notation sucks and I don't want to emulate it.

Certainly it sucks. Unfortunately it's the supported ODBC API which is
emulated by everyone else, including JDBC and DBI. So the world's pretty much
stuck with it.

However this isn't Postgres's problem. If you want to write code that works
with multiple databases then you're going to want to be using something like
ODBC or JDBC or DBI anyways. In which case it's the driver's responsibility to
provide the standard API which includes translating ? into appropriate syntax
for the database.

In other words, your problem should already be solved by your driver.

-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Compile failure with SSL
Следующее
От: Mike Mascari
Дата:
Сообщение: Re: placeholder syntax