]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: show direction is optional in FETCH/MOVE's FROM/IN syntax
authorBruce Momjian <bruce@momjian.us>
Wed, 31 Aug 2022 23:28:41 +0000 (19:28 -0400)
committerBruce Momjian <bruce@momjian.us>
Wed, 31 Aug 2022 23:28:41 +0000 (19:28 -0400)
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
doc/src/sgml/ref/move.sgml

index e802be61c8c6dd81d550f636edf42edecced072e..b6d66215a97fb693eb3cf67ecd7450490a33936f 100644 (file)
@@ -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
index 4c7d1dca391b44a4586ee0fc6f06acb6f4fa71f1..8378439debbadb11ef7bcd078c37a01e92e2e13a 100644 (file)
@@ -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