Re: quote_literal with NULL - Mailing list pgsql-hackers

From Michael Glaesemann
Subject Re: quote_literal with NULL
Date
Msg-id F10B2D20-485F-4806-BC74-F6407D62F5F1@seespotcode.net
Whole thread Raw
In response to Re: quote_literal with NULL  ("Greg Sabino Mullane" <greg@turnstep.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: quote_literal with NULL
Next
From: "Hiroshi Saito"
Date:
Subject: Re: permission denied for tablespace pg_global?