summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2018-11-02 12:54:33 +0000
committerBruce Momjian2018-11-02 12:54:33 +0000
commitf499dabbd51da787aae359f62d336d439dd440ed (patch)
treec8afdf5c19af5a3173bd5d6e11df9e1377937c73
parent82dd1c271492e7dc4d5b96825f7b29679c5dc33a (diff)
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 <[email protected]> Discussion: https://postgr.es/m/[email protected] Reviewed-by: David G. Johnston Backpatch-through: 9.3
-rw-r--r--doc/src/sgml/func.sgml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index ff144d6e15..b95e125372 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -12848,7 +12848,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
The result is <quote>false</> if the comparison returns false for every
subquery row (including the case where the subquery returns no
rows).
- The result is NULL if the comparison does not return true for any row,
+ The result is NULL if no comparison with a subquery row returns true,
and it returns NULL for at least one row.
</para>
@@ -12874,7 +12874,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
The result of <token>ALL</token> is <quote>true</> if all rows yield true
(including the case where the subquery returns no rows).
The result is <quote>false</> if any false result is found.
- The result is NULL if the comparison does not return false for any row,
+ The result is NULL if no comparison with a subquery row returns false,
and it returns NULL for at least one row.
</para>
@@ -12904,8 +12904,8 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
case where the subquery returns no rows).
The result is <quote>false</> if the comparison returns false for any
subquery row.
- The result is NULL if the comparison does not return false for any
- subquery row, and it returns NULL for at least one row.
+ The result is NULL if no comparison with a subquery row returns false,
+ and it returns NULL for at least one row.
</para>
<para>