More cleanups of cursor text.
This commit is contained in:
parent
0a3ccafffe
commit
0325149a53
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.56 2002/04/09 02:43:25 momjian Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.57 2002/04/09 03:08:25 momjian Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="plpgsql">
|
<chapter id="plpgsql">
|
||||||
@ -1449,8 +1449,8 @@ END LOOP;
|
|||||||
to worry about that, since FOR loops automatically use a cursor
|
to worry about that, since FOR loops automatically use a cursor
|
||||||
internally to avoid memory problems.) A more interesting usage is to
|
internally to avoid memory problems.) A more interesting usage is to
|
||||||
return a reference to a cursor that it has created, allowing the
|
return a reference to a cursor that it has created, allowing the
|
||||||
caller to read the rows. This provides one way of returning multiple
|
caller to read the rows. This provides a way to return row sets
|
||||||
rows and columns from a function.
|
from functions.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect2 id="plpgsql-cursor-declarations">
|
<sect2 id="plpgsql-cursor-declarations">
|
||||||
@ -1691,10 +1691,10 @@ SELECT reffunc2();
|
|||||||
|
|
||||||
reffunc2
|
reffunc2
|
||||||
--------------------
|
--------------------
|
||||||
>unnamed cursor 1<
|
<unnamed cursor 1>
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
FETCH ALL IN ">unnamed cursor 1<";
|
FETCH ALL IN "<unnamed cursor 1>";
|
||||||
COMMIT;
|
COMMIT;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user