Skip to content

Commit 9bdad1b

Browse files
committed
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
1 parent 1083f94 commit 9bdad1b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/src/sgml/ref/fetch.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ PostgreSQL documentation
2727
<refsynopsisdiv>
2828
<!-- Note the "direction" bit is also in ref/move.sgml -->
2929
<synopsis>
30-
FETCH [ <replaceable class="parameter">direction</replaceable> [ FROM | IN ] ] <replaceable class="parameter">cursor_name</replaceable>
30+
FETCH [ <replaceable class="parameter">direction</replaceable> ] [ FROM | IN ] <replaceable class="parameter">cursor_name</replaceable>
3131

32-
<phrase>where <replaceable class="parameter">direction</replaceable> can be empty or one of:</phrase>
32+
<phrase>where <replaceable class="parameter">direction</replaceable> can
33+
be one of:</phrase>
3334

3435
NEXT
3536
PRIOR

doc/src/sgml/ref/move.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ PostgreSQL documentation
2727
<refsynopsisdiv>
2828
<!-- Note the "direction" bit is also in ref/fetch.sgml -->
2929
<synopsis>
30-
MOVE [ <replaceable class="parameter">direction</replaceable> [ FROM | IN ] ] <replaceable class="parameter">cursor_name</replaceable>
30+
MOVE [ <replaceable class="parameter">direction</replaceable> ] [ FROM | IN ] <replaceable class="parameter">cursor_name</replaceable>
3131

32-
<phrase>where <replaceable class="parameter">direction</replaceable> can be empty or one of:</phrase>
32+
<phrase>where <replaceable class="parameter">direction</replaceable> can
33+
be one of:</phrase>
3334

3435
NEXT
3536
PRIOR

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