@@ -3317,7 +3317,7 @@ OPEN curs1 FOR EXECUTE format('SELECT * FROM %I WHERE col1 = $1',tabname) USING
3317
3317
<title>Opening a Bound Cursor</title>
3318
3318
3319
3319
<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>;
3321
3321
</synopsis>
3322
3322
3323
3323
<para>
@@ -3340,7 +3340,7 @@ OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional> <replace
3340
3340
Argument values can be passed using either <firstterm>positional</firstterm>
3341
3341
or <firstterm>named</firstterm> notation. In positional
3342
3342
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
3344
3344
separate it from the argument expression. Similar to calling
3345
3345
functions, described in <xref linkend="sql-syntax-calling-funcs"/>, it
3346
3346
is also allowed to mix positional and named notation.
@@ -3351,11 +3351,18 @@ OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional> <replace
3351
3351
<programlisting>
3352
3352
OPEN curs2;
3353
3353
OPEN curs3(42);
3354
- OPEN curs3(key := 42);
3355
3354
OPEN curs3(Key => 42);
3356
3355
</programlisting>
3357
3356
</para>
3358
3357
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
+
3359
3366
<para>
3360
3367
Because variable substitution is done on a bound cursor's query,
3361
3368
there are really two ways to pass values into the cursor: either
0 commit comments