From: Tom Lane <tgl@sss.pgh.pa.us>
To: elliotchance@gmail.com
Cc: pgsql-docs@postgresql.org
Subject: Re: DECLARE syntax is different from the 2016 SQL standard
Date: Mon, 13 Mar 2017 22:28:37 -0400
Message-ID: <28661.1489458517@sss.pgh.pa.us> (raw)
In-Reply-To: <20170312060937.1416.26045@wrigleys.postgresql.org>
References: <20170312060937.1416.26045@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, elliotchance@gmail.com
Subject: Re: DECLARE syntax is different from the 2016 SQL standard
In-Reply-To: <28661.1489458517@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox