Re: BOOLEAN data type? - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: BOOLEAN data type?
Date
Msg-id Pine.LNX.4.30.0104131850590.945-100000@peter.localdomain
Whole thread Raw
In response to BOOLEAN data type?  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: BOOLEAN data type?
List 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@gmx.net       http://yi.org/peter-e/



pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: BOOLEAN data type?
Next
From: Tom Lane
Date:
Subject: Mailing list gripes (was Re: Re: Maybe a Bug, maybe bad SQL)