From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Michael Paesold" <mpaesold(at)gmx(dot)at>, "Sean Chittenden" <chitt(at)speakeasy(dot)net>, "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Casting INT4 to BOOL... |
Date: | 2004-10-12 07:05:19 |
Message-ID: | 200410120905.19154.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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/
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2004-10-12 07:18:36 | Re: libpq.dll on win32 |
Previous Message | Stephan Szabo | 2004-10-12 06:02:49 | Re: Casting INT4 to BOOL... |