Skip to content

Commit bf4bf09

Browse files
committed
Revert doc change so we mention moving past the last row of a cursor.
1 parent 985e551 commit bf4bf09

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/src/sgml/ref/fetch.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.24 2003/02/03 14:04:24 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.25 2003/02/04 11:23:58 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -209,13 +209,13 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
209209

210210
<para>
211211
The cursor position can be before the first row of the query result, or on
212-
any particular row of the result.
212+
any particular row of the result, or after the last row of the result.
213213
When created, a cursor is positioned before the first row. After fetching
214214
some rows, the cursor is positioned on the last row retrieved. A new
215215
<command>FETCH</command> always steps one row in the specified direction
216216
(if possible) before beginning to return rows. If the
217217
<command>FETCH</command> requests more rows than available, the cursor is
218-
left positioned on the last row of the query result (or on the first
218+
left positioned after the last row of the query result (or before the first
219219
row, in the case of a backward fetch). This will always be the case after
220220
<command>FETCH ALL</>.
221221
</para>
@@ -225,7 +225,7 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
225225
A zero row count requests fetching the current row without moving the
226226
cursor --- that is, re-fetching the most recently fetched row.
227227
This will succeed unless the cursor is positioned before the
228-
first row; in which case, no row is returned.
228+
first row or after the last row; in which case, no row is returned.
229229
</para>
230230
</tip>
231231

doc/src/sgml/ref/move.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.17 2003/02/03 14:04:24 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.18 2003/02/04 11:23:58 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -35,7 +35,7 @@ MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable c
3535
<para>
3636
<command>MOVE</command> allows the user to move the cursor position a
3737
specified number of rows, or to the beginning or end of the cursor.
38-
<command>MOVE ALL</command> moves to the last row of the cursor.
38+
<command>MOVE ALL</command> moves to the end of the cursor.
3939
<command>MOVE</command> works exactly like the <command>FETCH</command>
4040
command, except it only repositions the cursor and does not return rows.
4141
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy