Re: union all bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: union all bug?
Дата
Msg-id 8621.1150649889@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: union all bug?  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-hackers
"Gurjeet Singh" <singh.gurjeet@gmail.com> writes:
> Probably this explains the ERROR for the last query... The ORDER BY
> and LIMIT clauses are expected to end a query (except for subqueries,
> of course), and hence the keyword UNION is not expected after the
> LIMIT clause...

Yeah.  In theory that's unambiguous, but IIRC we couldn't persuade
bison of the fact, so you have to add parens.
        regards, tom lane


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

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: union all bug?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Rethinking stats communication mechanisms