Re: Adding UNIQUE constraint on NULL column - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Adding UNIQUE constraint on NULL column
Date
Msg-id 1105647399.24795.97.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: Adding UNIQUE constraint on NULL column  (Doug McNaught <doug@mcnaught.org>)
Responses Re: Adding UNIQUE constraint on NULL column  ("Frank D. Engel, Jr." <fde101@fjrhome.net>)
List pgsql-general
On Thu, 2005-01-13 at 11:02, Doug McNaught wrote:
> Dave Smith <dave.smith@candata.com> writes:
>
> > On Thu, 2005-01-13 at 10:12, Doug McNaught wrote:
>
> >> Are you really saying that you want 'NULL = NULL' to return 't'?
>
> > Yes
>
> Well, that's not how NULL works.

In this instance, just create an artificial NULL, like a text string of
"NONE" and insert that.



pgsql-general by date:

Previous
From: Lonni J Friedman
Date:
Subject: Re: allowing connections from additional hosts without a restart?
Next
From: "Woody Woodring"
Date:
Subject: Re: allowing connections from additional hosts without a restart?