Re: create table bug with reserved words?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: create table bug with reserved words?
Дата
Msg-id Pine.LNX.4.30.0102151859220.1211-100000@peter.localdomain
обсуждение исходный текст
Ответ на create table bug with reserved words?  (Chris Storah <cstorah@emis-support.demon.co.uk>)
Список pgsql-bugs
Chris Storah writes:

> There seems to be an inconsistency in the parsing of create table (possibly
> other SQL syntax?):
>
>     create table test (call int, end, int, select int);
> Fails with ERROR: parser: parse error at or near "create"

SELECT is a reserved word.  The error message just shows that the parser
is significantly confused.

>     create table test (call int, end1, int, select1 int);
> Works.
>
> Call, End and Select are reserved words, but why does 'Call' work and the
> others fail?
> Is this a bug - should the parser cope with any reserved words as
> identifiers?
>
> Thanks,
> Chris
>
>
>
>
>

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: create table bug with reserved words?
Следующее
От: Chris Storah
Дата:
Сообщение: RE: create table bug with reserved words?