X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6CEAE9FA3A3 for ; Wed, 6 Sep 2006 17:56:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 50200-02 for ; Wed, 6 Sep 2006 20:56:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31803.mail.mud.yahoo.com (web31803.mail.mud.yahoo.com [68.142.207.66]) by postgresql.org (Postfix) with SMTP id 173DD9FA34A for ; Wed, 6 Sep 2006 17:56:33 -0300 (ADT) Received: (qmail 30761 invoked by uid 60001); 6 Sep 2006 20:56:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rpaJ27fp8nPYGp2UIQ2se9V+lL9xXE/u7XU0O5owLaj5vtMTyBCGa06XVwTq/K+OZaem6gNYcbXM6jOzQgA4bcerideNp0t63QQo0HyO0VTKbsxo6Gb01Oq9D3Z3sGjYfPr73Dn0QQKMxzzses1zoMpWcya0bIUsxWyOqF2FsyE= ; Message-ID: <20060906205632.30759.qmail@web31803.mail.mud.yahoo.com> Received: from [63.203.180.122] by web31803.mail.mud.yahoo.com via HTTP; Wed, 06 Sep 2006 13:56:32 PDT Date: Wed, 6 Sep 2006 13:56:32 -0700 (PDT) From: Richard Broersma Jr Subject: Re: '= NULL' is not the same as 'IS NULL' To: Mark Morgan Lloyd , pgsql-odbc@postgresql.org In-Reply-To: <44FF3252.8F6A978B@telemetry.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.355 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: *** X-Archive-Number: 200609/45 X-Sequence-Number: 8196 > I'm afraid so, in Joe Celko's "SQL for Smarties" book, after which I simply > accepted that that was the way SQL worked. Yes for what I recall from my reading that he mentions that there are specific reasons to allow nulls. During Table design, if one cannot see how these specific rules apply to the data to of a column, then the column should be constrained as NOT NULL, with a DEFAULT value as '{left blank}' or 0 or some other value that would produce this effect. But I am sure that this is just one particular philosophy of table design. Regards, Richard Broersma Jr.