From fe2f878173cdb4b9ad4d70ad9d979d06a5d5df58 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" <lockhart@fourpalms.org> Date: Wed, 29 Sep 1999 05:20:20 +0000 Subject: [PATCH] Fix (mis)information about NULLIF() SQL function. Thanks to Tom Lane for pointing it out. --- doc/src/sgml/func.sgml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 492859f56b6..2bfec9272e5 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -45,10 +45,10 @@ class="parameter">c2</replaceable> + 5, 0) </entry> </row> <row> - <entry> IFNULL(<replaceable class="parameter">input</replaceable>,<replaceable class="parameter">non-NULL substitute</replaceable>) </entry> - <entry> non-NULL </entry> - <entry> return second argument if first is NULL </entry> - <entry> IFNULL(<replaceable class="parameter">c1</replaceable>, 'N/A')</entry> + <entry> NULLIF(<replaceable class="parameter">input</replaceable>,<replaceable class="parameter">value</replaceable>) </entry> + <entry> <replaceable class="parameter">input</replaceable> or NULL </entry> + <entry> return NULL if <replaceable class="parameter">input</replaceable> = <replaceable class="parameter">value</replaceable> </entry> + <entry> NULLIF(<replaceable class="parameter">c1</replaceable>, 'N/A')</entry> </row> <row> <entry> CASE WHEN <replaceable class="parameter">expr</replaceable> THEN <replaceable class="parameter">expr</replaceable> [...] ELSE <replaceable class="parameter">expr</replaceable> END </entry> -- GitLab