Weirdness with =? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Weirdness with =?
Date
Msg-id 43DDD1E5.6030402@familyhealth.com.au
Whole thread Raw
Responses Re: Weirdness with
Re: Weirdness with =?
List 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 by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: Want to add to contrib.... xmldbx
Next
From: "William ZHANG"
Date:
Subject: Re: GRANT/REVOKE: Allow column-level privileges