Re: How to implement Microsoft Access boolean (YESNO) - Mailing list pgsql-sql

From Tom Lane
Subject Re: How to implement Microsoft Access boolean (YESNO)
Date
Msg-id 18437.1138114741@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to implement Microsoft Access boolean (YESNO)  (Greg Stark <gsstark@mit.edu>)
List pgsql-sql
Greg Stark <gsstark@mit.edu> writes:
> Is there an implicit cast from ints? So if I pass a 0 or 1 argument for a
> boolean parameter now it'll work? That definitely didn't work in the past.

1. There's a cast.  2.  It's not implicit.  3. You have always (well,
at least since 7.0 which is the oldest version I have alive to check)
been able to write '0' or '1' as the input textual representation of
bool.  The latter has nothing to do with any integer coercion though.
        regards, tom lane


pgsql-sql by date:

Previous
From: PFC
Date:
Subject: Re: How to implement Microsoft Access boolean (YESNO)
Next
From: "codeWarrior"
Date:
Subject: Re: How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ?