Re: Casting INT4 to BOOL... - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Casting INT4 to BOOL...
Date
Msg-id 200410120905.19154.peter_e@gmx.net
Whole thread Raw
In response to Re: Casting INT4 to BOOL...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Am Montag, 11. Oktober 2004 15:50 schrieb Tom Lane:
> I agree with Michael's position.  I don't like implicit/automatic casts
> any more than Peter does, but I don't see a strong argument against
> providing explicit casts.

I find the chosen mapping to be somewhat arbitrary and artifical.  (2::int =>
'2'::text is not arbitrary in my mind, but 1::int => true is just something a
C programmer could make up.)  But I'm clearly in the minority here.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Casting INT4 to BOOL...
Next
From: "Dave Page"
Date:
Subject: Re: libpq.dll on win32