Weirdness with =?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Weirdness with =?
Дата
Msg-id 43DDD1E5.6030402@familyhealth.com.au
обсуждение исходный текст
Ответы Re: Weirdness with  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Weirdness with =?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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');

However, that set included to true only where verification_status=I, it
didn't set false at all.

Why doesn't this work?

Chris




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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Want to add to contrib.... xmldbx
Следующее
От: "William ZHANG"
Дата:
Сообщение: Re: GRANT/REVOKE: Allow column-level privileges