Re: BUG #5974: UNION construct type cast gives poor error message - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5974: UNION construct type cast gives poor error message
Date
Msg-id 21368.1302817680@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5974: UNION construct type cast gives poor error message  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: BUG #5974: UNION construct type cast gives poor error message  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Mike Fowler <mike@mlfowler.com> wrote:
>> So to summarise, Oracle and PostgreSQL need minor tweaks to run
>> cleanly and SQLServer and MySQL do not.

> That means that all three of the databases you tested have
> extensions to the standard similar to what is being contemplated for
> PostgreSQL.

Uh, no, it proves they all extend the standard to allow NULL to be
written without an immediate cast.  Mike's test really fails to prove
anything about the point at hand, which is what data type is being
imputed to the inner UNION.

I don't know those other DBMSes well enough to suggest a test that would
be definitive on the point, though.  We'd need something where the
choice of datatype is material to the final visible result, and at least
in PG that requires some knowledge of not-very-standard behaviors.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "qintao"
Date:
Subject: BUG #5979: postgres service cannot be started if database is located in NAS
Next
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5974: UNION construct type cast gives poor error message