From 3766e99c418d6211254acd580fa9d388ea4af2dd Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 4 Aug 2003 14:00:14 +0000 Subject: [PATCH] Add a note that AND and OR are commutative. Apparently, they are not in certain other products. --- doc/src/sgml/func.sgml | 10 +++++++++- doc/src/sgml/syntax.sgml | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 59d308913c..f06f289d2d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -162,6 +162,14 @@ PostgreSQL documentation + + + The operators AND and OR are + commutative, that is, you can switch the left and right operand + without affecting the result. But see for more information about the + order of evaluation of subexpressions. + diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 372aca2ca7..8d23a3e354 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ @@ -1216,7 +1216,7 @@ SELECT name, (SELECT max(pop) FROM cities WHERE cities.state = states.name) - + Expression Evaluation -- 2.11.0