Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite0cd0ea

Browse files
committed
Doc: update documentation for requirement of ORDER BY in GROUPS mode.
Commitff4f889 adjusted the code to enforce the SQL spec's requirementthat a window using GROUPS mode must have an ORDER BY clause. But I missedthat the documentation explicitly said you didn't have to have one.Also minor wordsmithing in the window-function section of select.sgml.Per Masahiko Sawada, though I didn't use his patch.
1 parent8e59989 commite0cd0ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎doc/src/sgml/ref/select.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ EXCLUDE NO OTHERS
901901
CURRENT ROW</literal>; it sets the frame to be all rows from the partition start
902902
up through the current row's last <firstterm>peer</firstterm> (a row
903903
that the window's <literal>ORDER BY</literal> clause considers
904-
equivalent to the current row), orall rows if there
905-
is no <literal>ORDER BY</literal>.
904+
equivalent to the current row;all rows are peers if there
905+
is no <literal>ORDER BY</literal>).
906906
In general, <literal>UNBOUNDED PRECEDING</literal> means that the frame
907907
starts with the first row of the partition, and similarly
908908
<literal>UNBOUNDED FOLLOWING</literal> means that the frame ends with the last
@@ -924,7 +924,7 @@ EXCLUDE NO OTHERS
924924
is an integer indicating that the frame starts or ends that many peer
925925
groups before or after the current row's peer group, where
926926
a <firstterm>peer group</firstterm> is a group of rows that are
927-
equivalent according to <literal>ORDER BY</literal>.
927+
equivalent according tothe window's<literal>ORDER BY</literal> clause.
928928
In <literal>RANGE</literal> mode, use of
929929
an <replaceable>offset</replaceable> option requires that there be
930930
exactly one <literal>ORDER BY</literal> column in the window definition.

‎doc/src/sgml/syntax.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,8 +1917,8 @@ EXCLUDE NO OTHERS
19171917
ends the specified number of <firstterm>peer groups</firstterm>
19181918
before or after the current row's peer group, where a peer group is a
19191919
set of rows that are equivalent in the <literal>ORDER BY</literal>
1920-
ordering. (If there is no <literal>ORDER BY</literal>, the whole
1921-
partition is one peer group.)
1920+
ordering. (There must be an <literal>ORDER BY</literal> clause
1921+
in the window definition to use <literal>GROUPS</literal> mode.)
19221922
</para>
19231923
</listitem>
19241924
<listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp