Re: [GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Dave Smith
Yes On Thu, 2005-01-13 at 10:12, Doug McNaught wrote: > Dave Smith <[EMAIL PROTECTED]> writes: > > > I am trying to add a unique constraint on a column that can be null. The > > documentation states that null is treated as non equal values but I want > > them to be equal. Is there another way of d

Re: [GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Bruno Wolff III
On Thu, Jan 13, 2005 at 09:01:08 -0500, Dave Smith <[EMAIL PROTECTED]> wrote: > I am trying to add a unique constraint on a column that can be null. The > documentation states that null is treated as non equal values but I want > them to be equal. Is there another way of doing this other than wri

Re: [GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Or look at: http://archives.postgresql.org/pgsql-sql/2003-08/msg00286.php (and possibly its follow-up) On Jan 13, 2005, at 3:16 PM, Scott Marlowe wrote: On Thu, 2005-01-13 at 11:02, Doug McNaught wrote: Dave Smith <[EMAIL PROTECTED]> writes: On Thu, 200

Re: [GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Scott Marlowe
On Thu, 2005-01-13 at 11:02, Doug McNaught wrote: > Dave Smith <[EMAIL PROTECTED]> 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 creat

Re: [GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Doug McNaught
Dave Smith <[EMAIL PROTECTED]> 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. -Doug ---(end of broadcast)--- TIP 2: you can g

Re: [GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Doug McNaught
Dave Smith <[EMAIL PROTECTED]> writes: > I am trying to add a unique constraint on a column that can be null. The > documentation states that null is treated as non equal values but I want > them to be equal. Is there another way of doing this other than writing > a before insert trigger? UNIQUE

[GENERAL] Adding UNIQUE constraint on NULL column

2005-01-13 Thread Dave Smith
I am trying to add a unique constraint on a column that can be null. The documentation states that null is treated as non equal values but I want them to be equal. Is there another way of doing this other than writing a before insert trigger? -- Dave Smith CANdata Systems Ltd 416-493-9020 -