Re: quote_literal with NULL

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: quote_literal with NULL
Дата
Msg-id 37ed240d0710110110w2bceab9cybc19b117278f5c7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: quote_literal with NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 10/11/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Well, it's clearly useful in INSERT and UPDATE.  For WHERE cases, you
> might or might not be able to use it, but I note that quote_nullable()
> would work much more like what happens if you use a parameter symbol
> and then bind NULL as the actual parameter value ...
>
> In hindsight we should probably have done quote_literal the way the OP
> suggests, but I concur that it's too late to change it.  An additional
> function seems a reasonable compromise.

quote_nullable() works for me.  I'll write up a patch.

Cheers,
BJ


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

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: Plan invalidation vs temp sequences
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Plan invalidation vs temp sequences