Skip to content

Commit 61abff1

Browse files
committed
doc: use simpler language for NULL return from ANY/ALL
Previously the combination of "does not return" and "any row" caused ambiguity. Reported-by: KES <kes-kes@yandex.ru> Discussion: https://postgr.es/m/153701242703.22334.1476830122267077397@wrigleys.postgresql.org Reviewed-by: David G. Johnston Backpatch-through: 9.3
1 parent 0446551 commit 61abff1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15192,7 +15192,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
1519215192
The result is <quote>false</quote> if the comparison returns false for every
1519315193
subquery row (including the case where the subquery returns no
1519415194
rows).
15195-
The result is NULL if the comparison does not return true for any row,
15195+
The result is NULL if no comparison with a subquery row returns true,
1519615196
and it returns NULL for at least one row.
1519715197
</para>
1519815198

@@ -15218,7 +15218,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
1521815218
The result of <token>ALL</token> is <quote>true</quote> if all rows yield true
1521915219
(including the case where the subquery returns no rows).
1522015220
The result is <quote>false</quote> if any false result is found.
15221-
The result is NULL if the comparison does not return false for any row,
15221+
The result is NULL if no comparison with a subquery row returns false,
1522215222
and it returns NULL for at least one row.
1522315223
</para>
1522415224

@@ -15248,8 +15248,8 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
1524815248
case where the subquery returns no rows).
1524915249
The result is <quote>false</quote> if the comparison returns false for any
1525015250
subquery row.
15251-
The result is NULL if the comparison does not return false for any
15252-
subquery row, and it returns NULL for at least one row.
15251+
The result is NULL if no comparison with a subquery row returns false,
15252+
and it returns NULL for at least one row.
1525315253
</para>
1525415254

1525515255
<para>

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