Re: BUG #5974: UNION construct type cast gives poor error message

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BUG #5974: UNION construct type cast gives poor error message
Дата
Msg-id 4DA6D50E020000250003C83A@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: BUG #5974: UNION construct type cast gives poor error message  (Mike Fowler <mike@mlfowler.com>)
Ответы Re: BUG #5974: UNION construct type cast gives poor error message  (Mike Fowler <mike@mlfowler.com>)
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Mike Fowler
Дата:
Сообщение: Re: BUG #5974: UNION construct type cast gives poor error message
Следующее
От: Mike Fowler
Дата:
Сообщение: Re: BUG #5974: UNION construct type cast gives poor error message