Re: CHECK constraint removing brackets

From: Andy Shellam <andy-lists(at)networkmail(dot)eu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: CHECK constraint removing brackets
Date: 2010-01-11 23:27:35
Message-ID: C433EA79-69F9-4372-B04C-D59BC94434C6@networkmail.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Tom and Scott,

>
> I think your real problem is that you're trying to use "= NULL" and
> "!= NULL" where you should say IS NULL or IS NOT NULL.

Argh such a school-boy error! This is the first bit of database programming I've done for about 2 months, and I hadn't switched my C++ brain off.

I know about the <> and !=, for some reason != has always made better sense to me to read, so I tend to write it that way.

Cheers,
Andy

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2010-01-12 00:10:33 Re: CHECK constraint removing brackets
Previous Message Tom Lane 2010-01-11 20:15:18 Re: CHECK constraint removing brackets