Re: [DOCS] DECLARE syntax is different from the 2016 SQL standard

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [DOCS] DECLARE syntax is different from the 2016 SQL standard
Дата
Msg-id 28661.1489458517@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [DOCS] DECLARE syntax is different from the 2016 SQL standard  (elliotchance@gmail.com)
Ответы Re: [DOCS] DECLARE syntax is different from the 2016 SQL standard  (Elliot Chance <elliotchance@gmail.com>)
Список pgsql-docs
elliotchance@gmail.com writes:
> The 2016 standard uses a different syntax to declare a cursor:

> <declare cursor> ::=
>   DECLARE <cursor name> <cursor properties>
>       FOR <cursor specification>

> Notice that it does not require or permit the "CURSOR" keyword before the
> "FOR" keyword.

For some reason, the spec puts the CURSOR keyword into <cursor
properties>, but it's definitely there:

<cursor properties> ::=
  [ <cursor sensitivity> ] [ <cursor scrollability> ] CURSOR
      [ <cursor holdability> ]
      [ <cursor returnability> ]

            regards, tom lane


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

Предыдущее
От: elliotchance@gmail.com
Дата:
Сообщение: [DOCS] DECLARE syntax is different from the 2016 SQL standard
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: [DOCS] incorrect assignment op (= vs :=)