Weirdness with =?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Weirdness with =?
Date: 2006-01-30 08:44:21
Message-ID: 43DDD1E5.6030402@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message William ZHANG 2006-01-30 08:48:04 Re: GRANT/REVOKE: Allow column-level privileges
Previous Message Raymond 2006-01-30 08:11:26 Re: GRANT/REVOKE: Allow column-level privileges