Re: BUG #13502: parser misconstrues table alias

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: BUG #13502: parser misconstrues table alias
Дата
Msg-id CAKFQuwYx8nwg-uJ89FOd-Z=CaDQ-CR61m5Q5L43vnR_BCZHGmQ@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #13502: parser misconstrues table alias  (floriparob@gmail.com)
Список pgsql-bugs
On Wednesday, July 15, 2015, <floriparob@gmail.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      13502
> Logged by:          Robert Stone
> Email address:      floriparob@gmail.com <javascript:;>
> PostgreSQL version: 9.4.4
> Operating system:   Debian stretch/sid
> Description:
>
> I aliased a table using the letters TO and the parser pulled an error.
> Happens in psql as well as the JDBC driver.
> By altering the table alias to TOL overcame the problem.
>
>
Since TO is fully reserved in the SQL syntax, including PostgreSQL's
implementation, this is not surprising.  If you really want to use those
letters you need to double-quite them.  "TO".column_name.

 http://www.postgresql.org/docs/9.4/interactive/sql-keywords-appendix.html

David J.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #13502: parser misconstrues table alias
Следующее
От: pinker
Дата:
Сообщение: Interval - incorrect grammar form