Re: BOOLEAN data type?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: BOOLEAN data type?
Date: 2001-04-13 16:52:40
Message-ID: Pine.LNX.4.30.0104131850590.945-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Josh Berkus writes:

> That the following query:
>
> SELECT detail_id FROM order_detials
> WHERE order_usq = 7703 AND detail_required;
>
> ... should be equivalent to:
>
> SELECT detail_id FROM order_detials
> WHERE order_usq = 7703 AND detail_required = TRUE;
>
> However, in testing (7.1 RC2), the query turned out to mean this:
>
> SELECT detail_id FROM order_detials
> WHERE order_usq = 7703 AND detail_required IS NOT NULL;

No way. You're doing something wrong. How about showing the data that
makes you believe this?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sharmad Naik 2001-04-13 18:02:41 SELECT query
Previous Message Tom Lane 2001-04-13 16:28:43 Mailing list gripes (was Re: Re: Maybe a Bug, maybe bad SQL)