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

From Tom Lane
Subject Re: Casting INT4 to BOOL...
Date
Msg-id 4045.1097502623@sss.pgh.pa.us
Whole thread Raw
In response to Re: Casting INT4 to BOOL...  ("Michael Paesold" <mpaesold@gmx.at>)
Responses Re: Casting INT4 to BOOL...
List pgsql-patches
"Michael Paesold" <mpaesold@gmx.at> writes:
> Peter Eisentraut wrote:
>> I oppose casts from boolean to integer or vice versa.

> Even _explicit_ casts only? It would not have any bad side effects on people
> not using it, would it?

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.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Michael Paesold"
Date:
Subject: Re: Casting INT4 to BOOL...
Next
From: Bruce Momjian
Date:
Subject: Re: plperl features