Re: quote_literal with NULL

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: quote_literal with NULL
Дата
Msg-id F10B2D20-485F-4806-BC74-F6407D62F5F1@seespotcode.net
обсуждение исходный текст
Ответ на Re: quote_literal with NULL  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-hackers
On Oct 10, 2007, at 11:24 , Greg Sabino Mullane wrote:

> (Aside: seems to me that
> SET foo = NULL; really should be SET foo TO NULL; to be consistent
> with WHERE foo IS NULL;)

The = character has different meanings in these two cases.

UPDATE foos
SET foo = NULL  -- assignment
WHERE bar IS NULL -- comparison    AND foo = 'ignore me' -- comparison

Or is that what the smiley was about? :)

Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: quote_literal with NULL
Следующее
От: "Hiroshi Saito"
Дата:
Сообщение: Re: permission denied for tablespace pg_global?