Re: Basic questions about PQprepare()

Поиск
Список
Период
Сортировка
Искать
От
Alexander Farber
Тема
Re: Basic questions about PQprepare()
Дата
Msg-id
943abd910601281126g1851878bl2294910dfc8eacd4@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Basic questions about PQprepare() Alexander Farber <alexander.farber@gmail.com>
Re: Basic questions about PQprepare() Tom Lane <tgl@sss.pgh.pa.us>
Re: Basic questions about PQprepare() Alexander Farber <alexander.farber@gmail.com>
Re: Basic questions about PQprepare() Joachim Wieland <joe@mcknight.de>
Re: Basic questions about PQprepare() Michael Fuhr <mike@fuhr.org>
Re: Basic questions about PQprepare() Keary Suska <hierophant@pcisys.net>
Re: Basic questions about PQprepare() Tom Lane <tgl@sss.pgh.pa.us>
Thank you Tom,

I also should have reread the docs on 1) and 2) -
it is mentioned there too that you have to call
PQfinish and PQclear even on failed operations.

Could you explain a bit more, where to get the OIDs?
There are really not many PQprepare examples
around (I wonder why, isn't it the fastest method?)

Regards
Alex

On 1/28/06, Tom Lane  wrote:
> Alexander Farber  writes:
> > 4) How do I set the last PQprepare argument, the const Oid *paramTypes?
>
> You'd need to look up the OIDs of the parameter types.  In practice it's
> usally a lot easier to write the queries so that the parameter types can
> be inferred by the backend.
В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Viewing Database Scheme
От: Raymond O'Donnell
Дата:
FAQ