public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: [email protected]
Subject: pgsql: Allow => syntax for named cursor arguments in plpgsql.
Date: Mon, 03 Mar 2025 23:00:22 +0000
Message-ID: <[email protected]> (raw)

Allow => syntax for named cursor arguments in plpgsql.

We've traditionally accepted "name := value" syntax for
cursor arguments in plpgsql.  But it turns out that the
equivalent statements in Oracle use "name => value".
Since we accept both forms of punctuation for function
arguments, it makes sense to do the same here.

Author: Pavel Stehule <[email protected]>
Reviewed-by: Gilles Darold <[email protected]>
Discussion: https://postgr.es/m/CAFj8pRA3d0ARQEMbABa1n6q25AUdNmyO8aGs56XNf9pD4sRMjQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/246dedc5d028800b393920184e5e6319c6805253

Modified Files
--------------
doc/src/sgml/plpgsql.sgml             |  8 +++++---
src/pl/plpgsql/src/pl_gram.y          | 13 ++++++++-----
src/test/regress/expected/plpgsql.out |  6 ++++--
src/test/regress/sql/plpgsql.sql      |  6 ++++--
4 files changed, 21 insertions(+), 12 deletions(-)



reply

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Allow => syntax for named cursor arguments in plpgsql.
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox