From d316f2226738d91e00461f49f6bef16ae178954c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 16 Dec 2000 18:33:13 +0000 Subject: [PATCH] Add note that COALESCE and NULLIF are shorthand forms of CASE. --- doc/src/sgml/func.sgml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 5b3012625e..48bdb2a5e1 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -2618,6 +2618,19 @@ SELECT COALESCE(description, short_description, '(none)') ... SELECT NULLIF(value, '(none)') ... + + + + COALESCE and NULLIF are + just shorthand for CASE expressions. They are actually + converted into CASE expressions at a very early stage + of processing, and subsequent processing thinks it is dealing with + CASE. Thus an incorrect COALESCE or + NULLIF usage may draw an error message that + refers to CASE. + + +