doc: show direction is optional in FETCH/MOVE's FROM/IN syntax
authorBruce Momjian <[email protected]>
Wed, 31 Aug 2022 23:28:41 +0000 (19:28 -0400)
committerBruce Momjian <[email protected]>
Wed, 31 Aug 2022 23:28:41 +0000 (19:28 -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 d8784e537f0f1d0f02da559279b464f7328ec222..00f171a30b903044fdc7f32efd43e315e9acfaa0 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 ed64f23068999c66412d2c0685da018bf29d878e..124ea2bf8bed41d0c9b4ff32b0e1c2d6ffcd96e1 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