From 897313e824f6190937e7d005845021e2b1197668 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 30 Oct 2007 19:06:56 +0000 Subject: [PATCH] Add a note pointing out that some other databases make GREATEST and LEAST handle NULL arguments differently than we do. Per a discussion on 30-Jun that somehow didn't get done. --- doc/src/sgml/func.sgml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 5feb572de2..34e9d56e65 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -9016,7 +9016,9 @@ SELECT NULLIF(value, '(none)') ... Note that GREATEST and LEAST are not in - the SQL standard, but are a common extension. + the SQL standard, but are a common extension. Some other databases + make them return NULL if any argument is NULL, rather than only when + all are NULL.