postgres.git / summary / log / commit / refs
commit 91b442aae76bf01bd4827ae03d017593fd04bf5b
Author: Bruce Momjian <bruce@momjian.us>
Date: Wed Aug 31 23:28:41 2022 +0000
First released in: 16.0, 10.23, 11.18, 12.13, 13.9, 14.6, 15.0
doc: show direction is optional in FETCH/MOVE's FROM/IN syntax
It used to show direction was required for FROM/IN.
Reported-by: Rob <rirans@comcast.net>
Discussion: https://postgr.es/m/20211015165248.isqjceyilelhnu3k@localhost
Author: Rob <rirans@comcast.net>
Backpatch-through: 10
doc/src/sgml/ref/fetch.sgml | 5 +++--
doc/src/sgml/ref/move.sgml | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/doc/src/sgml/ref/fetch.sgml b/doc/src/sgml/ref/fetch.sgml
index d8784e537f0..00f171a30b9 100644
--- a/doc/src/sgml/ref/fetch.sgml
+++ b/doc/src/sgml/ref/fetch.sgml
@@ -27,9 +27,10 @@ PostgreSQL documentation
<refsynopsisdiv>
<!-- Note the "direction" bit is also in ref/move.sgml -->
<synopsis>
-FETCH [ <replaceable class="PARAMETER">direction</replaceable> [ FROM | IN ] ] <replaceable class="PARAMETER">cursor_name</replaceable>
+FETCH [ <replaceable class="PARAMETER">direction</replaceable> ] [ FROM | IN ] <replaceable class="PARAMETER">cursor_name</replaceable>
-<phrase>where <replaceable class="PARAMETER">direction</replaceable> can be empty or one of:</phrase>
+<phrase>where <replaceable class="PARAMETER">direction</replaceable> can
+be one of:</phrase>
NEXT
PRIOR
diff --git a/doc/src/sgml/ref/move.sgml b/doc/src/sgml/ref/move.sgml
index ed64f230689..124ea2bf8be 100644
--- a/doc/src/sgml/ref/move.sgml
+++ b/doc/src/sgml/ref/move.sgml
@@ -27,9 +27,10 @@ PostgreSQL documentation
<refsynopsisdiv>
<!-- Note the "direction" bit is also in ref/fetch.sgml -->
<synopsis>
-MOVE [ <replaceable class="PARAMETER">direction</replaceable> [ FROM | IN ] ] <replaceable class="PARAMETER">cursor_name</replaceable>
+MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ FROM | IN ] <replaceable class="PARAMETER">cursor_name</replaceable>
-<phrase>where <replaceable class="PARAMETER">direction</replaceable> can be empty or one of:</phrase>
+<phrase>where <replaceable class="PARAMETER">direction</replaceable> can
+be one of:</phrase>
NEXT
PRIOR
[parent: d07eecdce3d7]