Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f5382cf

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 87f76f1 commit f5382cf

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
@@ -14620,7 +14620,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
1462014620
The result is <quote>false</> if the comparison returns false for every
1462114621
subquery row (including the case where the subquery returns no
1462214622
rows).
14623-
The result is NULL if the comparison does not return true for any row,
14623+
The result is NULL if no comparison with a subquery row returns true,
1462414624
and it returns NULL for at least one row.
1462514625
</para>
1462614626

@@ -14646,7 +14646,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
1464614646
The result of <token>ALL</token> is <quote>true</> if all rows yield true
1464714647
(including the case where the subquery returns no rows).
1464814648
The result is <quote>false</> if any false result is found.
14649-
The result is NULL if the comparison does not return false for any row,
14649+
The result is NULL if no comparison with a subquery row returns false,
1465014650
and it returns NULL for at least one row.
1465114651
</para>
1465214652

@@ -14676,8 +14676,8 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
1467614676
case where the subquery returns no rows).
1467714677
The result is <quote>false</> if the comparison returns false for any
1467814678
subquery row.
14679-
The result is NULL if the comparison does not return false for any
14680-
subquery row, and it returns NULL for at least one row.
14679+
The result is NULL if no comparison with a subquery row returns false,
14680+
and it returns NULL for at least one row.
1468114681
</para>
1468214682

1468314683
<para>

0 commit comments

Comments
 (0)