mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Revert doc change so we mention moving past the last row of a cursor.
This commit is contained in:
parent
985e551b48
commit
bf4bf092e5
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.24 2003/02/03 14:04:24 momjian Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.25 2003/02/04 11:23:58 momjian Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -209,13 +209,13 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
The cursor position can be before the first row of the query result, or on
|
The cursor position can be before the first row of the query result, or on
|
||||||
any particular row of the result.
|
any particular row of the result, or after the last row of the result.
|
||||||
When created, a cursor is positioned before the first row. After fetching
|
When created, a cursor is positioned before the first row. After fetching
|
||||||
some rows, the cursor is positioned on the last row retrieved. A new
|
some rows, the cursor is positioned on the last row retrieved. A new
|
||||||
<command>FETCH</command> always steps one row in the specified direction
|
<command>FETCH</command> always steps one row in the specified direction
|
||||||
(if possible) before beginning to return rows. If the
|
(if possible) before beginning to return rows. If the
|
||||||
<command>FETCH</command> requests more rows than available, the cursor is
|
<command>FETCH</command> requests more rows than available, the cursor is
|
||||||
left positioned on the last row of the query result (or on the first
|
left positioned after the last row of the query result (or before the first
|
||||||
row, in the case of a backward fetch). This will always be the case after
|
row, in the case of a backward fetch). This will always be the case after
|
||||||
<command>FETCH ALL</>.
|
<command>FETCH ALL</>.
|
||||||
</para>
|
</para>
|
||||||
@ -225,7 +225,7 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
|
|||||||
A zero row count requests fetching the current row without moving the
|
A zero row count requests fetching the current row without moving the
|
||||||
cursor --- that is, re-fetching the most recently fetched row.
|
cursor --- that is, re-fetching the most recently fetched row.
|
||||||
This will succeed unless the cursor is positioned before the
|
This will succeed unless the cursor is positioned before the
|
||||||
first row; in which case, no row is returned.
|
first row or after the last row; in which case, no row is returned.
|
||||||
</para>
|
</para>
|
||||||
</tip>
|
</tip>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.17 2003/02/03 14:04:24 momjian Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.18 2003/02/04 11:23:58 momjian Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable c
|
|||||||
<para>
|
<para>
|
||||||
<command>MOVE</command> allows the user to move the cursor position a
|
<command>MOVE</command> allows the user to move the cursor position a
|
||||||
specified number of rows, or to the beginning or end of the cursor.
|
specified number of rows, or to the beginning or end of the cursor.
|
||||||
<command>MOVE ALL</command> moves to the last row of the cursor.
|
<command>MOVE ALL</command> moves to the end of the cursor.
|
||||||
<command>MOVE</command> works exactly like the <command>FETCH</command>
|
<command>MOVE</command> works exactly like the <command>FETCH</command>
|
||||||
command, except it only repositions the cursor and does not return rows.
|
command, except it only repositions the cursor and does not return rows.
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user