Re: [DOCS] DECLARE syntax is different from the 2016 SQL standard - Mailing list pgsql-docs

From Tom Lane
Subject Re: [DOCS] DECLARE syntax is different from the 2016 SQL standard
Date
Msg-id 28661.1489458517@sss.pgh.pa.us
Whole thread Raw
In response to [DOCS] DECLARE syntax is different from the 2016 SQL standard  (elliotchance@gmail.com)
Responses Re: [DOCS] DECLARE syntax is different from the 2016 SQL standard  (Elliot Chance <elliotchance@gmail.com>)
List 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 by date:

Previous
From: elliotchance@gmail.com
Date:
Subject: [DOCS] DECLARE syntax is different from the 2016 SQL standard
Next
From: Pavel Stehule
Date:
Subject: Re: [DOCS] incorrect assignment op (= vs :=)