diff options
author | Bruce Momjian <bruce@momjian.us> | 2018-11-02 08:54:33 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2018-11-02 08:54:33 -0400 |
commit | eff71cd910ad8cd1931bd78103f8d5b9fd8e634b (patch) | |
tree | 971efce589d3854eb196db5cca1411097aeb9ce2 | |
parent | d554e333e548c6f8eb033c2ae9c451eb232413c2 (diff) | |
download | postgresql-eff71cd910ad8cd1931bd78103f8d5b9fd8e634b.tar.gz postgresql-eff71cd910ad8cd1931bd78103f8d5b9fd8e634b.zip |
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
-rw-r--r-- | doc/src/sgml/func.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 8bf467577d1..841472d1ca3 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -14123,7 +14123,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> @@ -14149,7 +14149,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> @@ -14179,8 +14179,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> |