Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 48d3583

Browse files
okbob@github.comCommitfest Bot
okbob@github.com
authored and
Commitfest Bot
committed
Separate old (proprietary) syntax to own para with note so it is supported just for compatibility reasons.
1 parent a50fcc0 commit 48d3583

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,7 +3317,7 @@ OPEN curs1 FOR EXECUTE format('SELECT * FROM %I WHERE col1 = $1',tabname) USING
33173317
<title>Opening a Bound Cursor</title>
33183318

33193319
<synopsis>
3320-
OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional> <replaceable>argument_name</replaceable> { := | => } </optional> <replaceable>argument_value</replaceable> <optional>, ...</optional> ) </optional>;
3320+
OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional> <replaceable>argument_name</replaceable> { => | := } </optional> <replaceable>argument_value</replaceable> <optional>, ...</optional> ) </optional>;
33213321
</synopsis>
33223322

33233323
<para>
@@ -3340,7 +3340,7 @@ OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional> <replace
33403340
Argument values can be passed using either <firstterm>positional</firstterm>
33413341
or <firstterm>named</firstterm> notation. In positional
33423342
notation, all arguments are specified in order. In named notation,
3343-
each argument's name is specified using <literal>:=</literal> to
3343+
each argument's name is specified using <literal>=></literal> to
33443344
separate it from the argument expression. Similar to calling
33453345
functions, described in <xref linkend="sql-syntax-calling-funcs"/>, it
33463346
is also allowed to mix positional and named notation.
@@ -3351,11 +3351,18 @@ OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional> <replace
33513351
<programlisting>
33523352
OPEN curs2;
33533353
OPEN curs3(42);
3354-
OPEN curs3(key := 42);
33553354
OPEN curs3(Key => 42);
33563355
</programlisting>
33573356
</para>
33583357

3358+
<para>
3359+
An older syntax based on <literal>:=</literal> is supported for backward
3360+
compatibility:
3361+
<programlisting>
3362+
OPEN curs3(key := 42);
3363+
</programlisting>
3364+
</para>
3365+
33593366
<para>
33603367
Because variable substitution is done on a bound cursor's query,
33613368
there are really two ways to pass values into the cursor: either

0 commit comments

Comments
 (0)