Re: quote_literal with NULL

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: quote_literal with NULL
Дата
Msg-id 470CA58F.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на Re: quote_literal with NULL  ("Brendan Jurd" <direvus@gmail.com>)
Ответы Re: quote_literal with NULL  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
>>> On Wed, Oct 10, 2007 at  4:57 AM, in message
<37ed240d0710100257r149a8d2cmb671b69a1673eb54@mail.gmail.com>, "Brendan Jurd"
<direvus@gmail.com> wrote:
> On 10/10/07, Simon Riggs <simon@2ndquadrant.com> wrote:
>> On Wed, 2007-10-10 at 14:57 +1000, Brendan Jurd wrote:
>>
>> > Wouldn't it be more useful if quote_literal(NULL) yielded the text value
> 'NULL'?
>>
>> I don't think you can change that now. There could be code out there
>> that relies on that behaviour.
>>
>
> Bummer.  But I take your point.  If there's a good chance someone is
> going to have their application murdered by a change here, best to
> leave it alone.
In particular, it seems like exactly what you would want for values
you're going to use in an INSERT or the SET clause of an UPDATE.
-Kevin




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Skytools committed without hackers discussion/review
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Timezone database changes