Re: When is a record NULL? - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: When is a record NULL?
Date
Msg-id 1248539051.2759.627.camel@jdavis
Whole thread Raw
In response to Re: When is a record NULL?  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: When is a record NULL?
List pgsql-hackers
On Fri, 2009-07-24 at 15:47 -0700, David E. Wheeler wrote:
>      WHILE (NOT rec_have IS NULL AND rec_have IS DISTINCT FROM NULL)
>         OR (NOT rec_want IS NULL AND rec_want IS DISTINCT FROM NULL)
> 

I don't think you want the "NOT x IS NULL" part at all -- that will
evaluate to false when x = rec(NULL,NULL). I think you just want the "x
IS DISTINCT FROM NULL" part, right? Will that work?

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: When is a record NULL?
Next
From: "Kevin Grittner"
Date:
Subject: Re: When is a record NULL?