File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 11<!--
2- $PostgreSQL: pgsql/doc/src/sgml/ref/declare.sgml,v 1.45 2008/11/16 17:34:28 tgl Exp $
2+ $PostgreSQL: pgsql/doc/src/sgml/ref/declare.sgml,v 1.46 2009/04/10 17:56:21 tgl Exp $
33PostgreSQL documentation
44-->
55
@@ -41,6 +41,15 @@ DECLARE <replaceable class="parameter">name</replaceable> [ BINARY ] [ INSENSITI
4141 After the cursor is created, rows are fetched from it using
4242 <xref linkend="sql-fetch" endterm="sql-fetch-title">.
4343 </para>
44+
45+ <note>
46+ <para>
47+ This page describes usage of cursors at the SQL command level.
48+ If you are trying to use cursors inside a <application>PL/pgSQL</>
49+ function, the rules are different —
50+ see <xref linkend="plpgsql-cursors">.
51+ </para>
52+ </note>
4453 </refsect1>
4554
4655 <refsect1>
Original file line number Diff line number Diff line change 11<!--
2- $PostgreSQL: pgsql/doc/src/sgml/ref/fetch.sgml,v 1.42 2008/11/14 10:22:47 petere Exp $
2+ $PostgreSQL: pgsql/doc/src/sgml/ref/fetch.sgml,v 1.43 2009/04/10 17:56:21 tgl Exp $
33PostgreSQL documentation
44-->
55
@@ -92,6 +92,15 @@ where <replaceable class="PARAMETER">direction</replaceable> can be empty or one
9292 row. This will succeed unless the cursor is positioned before the
9393 first row or after the last row; in which case, no row is returned.
9494 </para>
95+
96+ <note>
97+ <para>
98+ This page describes usage of cursors at the SQL command level.
99+ If you are trying to use cursors inside a <application>PL/pgSQL</>
100+ function, the rules are different —
101+ see <xref linkend="plpgsql-cursors">.
102+ </para>
103+ </note>
95104 </refsect1>
96105
97106 <refsect1>
You can’t perform that action at this time.
0 commit comments