doc: show direction is optional in FETCH/MOVE's FROM/IN syntax
authorBruce Momjian <[email protected]>
Wed, 31 Aug 2022 23:28:42 +0000 (19:28 -0400)
committerBruce Momjian <[email protected]>
Wed, 31 Aug 2022 23:29:06 +0000 (19:29 -0400)
It used to show direction was required for FROM/IN.

Reported-by: Rob <[email protected]>
Discussion: https://postgr.es/m/20211015165248.isqjceyilelhnu3k@localhost

Author: Rob <[email protected]>

Backpatch-through: 10

doc/src/sgml/ref/fetch.sgml
doc/src/sgml/ref/move.sgml

index ec843f56844299e0a000800c14b14d46a776885c..83d58e54b9d82c25abc09f63193f0db64ce3c833 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