Re: 0/1 vs true/false - Mailing list pgsql-general

From scott.marlowe
Subject Re: 0/1 vs true/false
Date
Msg-id Pine.LNX.4.33.0307230959390.21905-100000@css120.ihs.com
Whole thread Raw
In response to Re: 0/1 vs true/false  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 0/1 vs true/false  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, 23 Jul 2003, Tom Lane wrote:

> Jean-Christian Imbeault <jc@mega-bucks.co.jp> writes:
> > Oops, I meant to say can someone point me to a ressource (SQL standard
> > and section?) which states that true/false must be used for booleans :)
>
> Well, there is no boolean type per se in SQL92.  But there is in SQL99.
> I think the most relevant part of the spec is the definition of boolean
> literals in section 5.3:
>
>          <boolean literal> ::=
>                 TRUE
>               | FALSE
>               | UNKNOWN

Was it pulled from SQL92 before it went standard?  My copy of the
pre-release lists a boolean type, just like the 99 standard does.

further, intermediate SQL compliance has this in it:

24)Subclause 8.12, "<search condition>":

            a) A <boolean test> shall not specify a <truth value>.

Does that mean you should only use the "is true" suntax, not the =true?




pgsql-general by date:

Previous
From: Errol Neal
Date:
Subject: Re: Increasing Max # of connections
Next
From: Tom Lane
Date:
Subject: Re: 0/1 vs true/false