Re: Weirdness with

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Weirdness with
Дата
Msg-id 20060130093018.GC7994@svana.org
обсуждение исходный текст
Ответ на Weirdness with =?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
On Mon, Jan 30, 2006 at 04:44:21PM +0800, Christopher Kings-Lynne wrote:
> I had this code in a script:
>
> UPDATE food_foods SET included=true WHERE verification_status = 'I';
> UPDATE food_foods SET included=false WHERE verification_status IS NULL;
>
> I tried replacing it with:
>
> UPDATE food_foods SET included=(verification_status = 'I');

(NULL = 'I')   is null, not false. It will simply set rows where
verification_status is NULL to NULL also.

Perhaps you mean IS NOT DISTNCT FROM or something similar?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: Want to add to contrib.... xmldbx
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Want to add to contrib.... xmldbx