From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Mike Fowler <mike@mlfowler.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeff Wu <jwu@atlassian.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5974: UNION construct type cast gives poor error message
Date: Thu, 14 Apr 2011 11:05:50 -0500
Message-ID: <4DA6D50E020000250003C83A@gw.wicourts.gov> (raw)
In-Reply-To: <4DA711B6.4060306@mlfowler.com>
References: <201104122018.p3CKIlWR042915@wwwmaster.postgresql.org>
<9799.1302719551@sss.pgh.pa.us>
<4DA711B6.4060306@mlfowler.com>
Mike Fowler <mike@mlfowler.com> wrote:
> SELECT 1,null,null
> UNION
> SELECT 2,3,null
> UNION
> SELECT 3,null,4
> In Oracle I get a delicious error message:
>
> Error: ORA-00923: FROM keyword not found where expected
For Oracle, shouldn't that be:
SELECT 1,null,null FROM DUAL
UNION
SELECT 2,3,null FROM DUAL
UNION
SELECT 3,null,4 FROM DUAL
-Kevin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, mike@mlfowler.com, tgl@sss.pgh.pa.us, jwu@atlassian.com
Subject: Re: BUG #5974: UNION construct type cast gives poor error message
In-Reply-To: <4DA6D50E020000250003C83A@gw.wicourts.gov>
References: <201104122018.p3CKIlWR042915@wwwmaster.postgresql.org> <9799.1302719551@sss.pgh.pa.us> <4DA711B6.4060306@mlfowler.com> <4DA6D50E020000250003C83A@gw.wicourts.gov>
* 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