]> granicus.if.org Git - postgresql/commitdiff
Clarify NULLIF example
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 22 Jul 2009 18:07:26 +0000 (18:07 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 22 Jul 2009 18:07:26 +0000 (18:07 +0000)
found by "Vesa-Matti J Kari" <vmkari@cc.helsinki.fi>

doc/src/sgml/func.sgml

index cbadf0f99a11e4f56d989cb3b963ba57421a61fb..b84f7d18dd73496850646921b297899287e45186 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.482 2009/06/17 21:58:49 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.483 2009/07/22 18:07:26 petere Exp $ -->
 
  <chapter id="functions">
   <title>Functions and Operators</title>
@@ -9193,8 +9193,9 @@ SELECT NULLIF(value, '(none)') ...
 </programlisting>
   </para>
   <para>
-   If <replaceable>value1</replaceable> is <literal>(none)</>, return a null,
-   otherwise return <replaceable>value1</replaceable>.
+   In this example, if <literal>value</literal> is <literal>(none)</>,
+   null is returned, otherwise the value of <literal>value</literal>
+   is returned.
   </para>
 
   </sect2>