From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Jesper K. Pedersen <jkp@solnet.homeip.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to implement Microsoft Access boolean (YESNO)
Date: Tue, 24 Jan 2006 09:59:01 -0500
Message-ID: <18437.1138114741@sss.pgh.pa.us> (raw)
In-Reply-To: <87r76yusi3.fsf@stark.xeocode.com>
References: <20060122211351.371f20d8@io.solnet>
<22008.1137962771@sss.pgh.pa.us>
<20060122221328.433038a9@io.solnet>
<873bjewts8.fsf@stark.xeocode.com>
<8505.1138050132@sss.pgh.pa.us>
<87r76yusi3.fsf@stark.xeocode.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, gsstark@mit.edu, jkp@solnet.homeip.net
Subject: Re: How to implement Microsoft Access boolean (YESNO)
In-Reply-To: <18437.1138114741@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox