Re: 0/1 vs true/false

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: 0/1 vs true/false
Дата
Msg-id Pine.LNX.4.33.0307230959390.21905-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Re: 0/1 vs true/false  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 0/1 vs true/false  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Errol Neal
Дата:
Сообщение: Re: Increasing Max # of connections
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 0/1 vs true/false