Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe

Поиск
Список
Период
Сортировка
От David Wheeler
Тема Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe
Дата
Msg-id B466C0B0-6B75-48EE-AD89-38DD72828E18@kineticode.com
обсуждение исходный текст
Ответ на Re: 'prepare' is not quite schema-safe  (Steve Atkins <steve@blighty.com>)
Ответы Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe  (Vlad <marchenko@gmail.com>)
Список pgsql-general
On May 1, 2005, at 23:16 , Steve Atkins wrote:

> Isn't this behaving as documented? prepare_cached() is supposed to
> return the original statement handle when you pass it the same string
> a second time.

Yes.

> The docs for prepare_cached() are littered with "Don't do this unless
> you understand the implications" warnings, as well as some kludges to
> differentiate different cases.

Which is why Vlad should use prepare() instead of prepare_cached().

Regards,

David

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

Предыдущее
От: David Wheeler
Дата:
Сообщение: Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe
Следующее
От: David Wheeler
Дата:
Сообщение: Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe