Re: Prepared statements question

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Prepared statements question
Дата
Msg-id 1042174241.551.5.camel@tokyo
обсуждение исходный текст
Ответ на Prepared statements question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: Prepared statements question  (Kevin Brown <kevin@sysexperts.com>)
Список pgsql-hackers
On Thu, 2003-01-09 at 22:48, Christopher Kings-Lynne wrote:
> With prepared statements being all well and good, how do I know if the query
> has not yet been prepared in the backend?  Or is this simply a situation
> where I can't win?

Try the EXECUTE; if it fails, run the PREPARE and then rerun the
EXECUTE.

It would be pretty trivial to add a function that checks if a query with
a given name has already been prepared -- is that worth doing?

Cheers,

Neil



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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Prepared statements question
Следующее
От: Neil Conway
Дата:
Сообщение: Re: EXPLAIN EXECUTE