You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OPEN <replaceable>unbound_cursor</replaceable> <optional> <optional> NO </optional> SCROLL </optional> FOR <replaceable>query</replaceable>;
2463
+
OPEN <replaceable>unbound_cursorvar</replaceable> <optional> <optional> NO </optional> SCROLL </optional> FOR <replaceable>query</replaceable>;
2464
2464
</synopsis>
2465
2465
2466
2466
<para>
2467
2467
The cursor variable is opened and given the specified query to
2468
2468
execute. The cursor cannot be open already, and it must have been
2469
-
declared as an unbound cursor (that is, as a simple
2469
+
declared as an unbound cursor variable (that is, as a simple
2470
2470
<type>refcursor</> variable). The query must be a
2471
2471
<command>SELECT</command>, or something else that returns rows
2472
2472
(such as <command>EXPLAIN</>). The query
@@ -2494,13 +2494,13 @@ OPEN curs1 FOR SELECT * FROM foo WHERE key = mykey;
2494
2494
<title><command>OPEN FOR EXECUTE</command></title>
2495
2495
2496
2496
<synopsis>
2497
-
OPEN <replaceable>unbound_cursor</replaceable> <optional> <optional> NO </optional> SCROLL </optional> FOR EXECUTE <replaceable class="command">query_string</replaceable>;
2497
+
OPEN <replaceable>unbound_cursorvar</replaceable> <optional> <optional> NO </optional> SCROLL </optional> FOR EXECUTE <replaceable class="command">query_string</replaceable>;
2498
2498
</synopsis>
2499
2499
2500
2500
<para>
2501
2501
The cursor variable is opened and given the specified query to
2502
2502
execute. The cursor cannot be open already, and it must have been
2503
-
declared as an unbound cursor (that is, as a simple
2503
+
declared as an unbound cursor variable (that is, as a simple
2504
2504
<type>refcursor</> variable). The query is specified as a string
2505
2505
expression, in the same way as in the <command>EXECUTE</command>
2506
2506
command. As usual, this gives flexibility so the query plan can vary
@@ -2524,7 +2524,7 @@ OPEN curs1 FOR EXECUTE 'SELECT * FROM ' || quote_ident($1);
2524
2524
<title>Opening a Bound Cursor</title>
2525
2525
2526
2526
<synopsis>
2527
-
OPEN <replaceable>bound_cursor</replaceable> <optional> ( <replaceable>argument_values</replaceable> ) </optional>;
2527
+
OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <replaceable>argument_values</replaceable> ) </optional>;
FOR <replaceable>recordvar</replaceable> IN <replaceable>bound_cursor</replaceable> <optional> ( <replaceable>argument_values</replaceable> ) </optional> LOOP
2853
+
FOR <replaceable>recordvar</replaceable> IN <replaceable>bound_cursorvar</replaceable> <optional> ( <replaceable>argument_values</replaceable> ) </optional> LOOP
2854
2854
<replaceable>statements</replaceable>
2855
2855
END LOOP <optional> <replaceable>label</replaceable> </optional>;
0 commit comments