Re: [GENERAL] Is "OFFSET" a reserved word?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] Is "OFFSET" a reserved word?
Дата
Msg-id 199907301810.OAA02189@candle.pha.pa.us
обсуждение исходный текст
Ответ на Is "OFFSET" a reserved word?  (Mark Dalphin <mdalphin@amgen.com>)
Список pgsql-general
> Hi,
>
> My old DB schema which worked up thru Postgresql ver 6.4.2 has been broken in
> ver 6.5.1 (running on an SGI).
>
> CREATE TABLE Seq (
>     .....
>     Offset int not null,
>     ....
> );
>
> now fails with a parse error at 'offset'. I don't see this word listed in the
> reserved words page. When I change the word to SeqOffset, the schema works fine.

Yes, now OFFSET is reserved:

SELECT * FROM tab LIMIT 100 OFFSET 3

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Mark Dalphin
Дата:
Сообщение: Is "OFFSET" a reserved word?
Следующее
От: Dmitry Popov
Дата:
Сообщение: Search