aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-07-22 18:07:26 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-07-22 18:07:26 +0000
commit2afa73a9e8545b880ca439385f5aa8c0cf716aa8 (patch)
tree3b9f44fbb3a1fe5eeb9278a6ccc315da88e64ad3
parent846c364dd4eab27e95ad01cf3a699aedea3ebe0c (diff)
downloadpostgresql-2afa73a9e8545b880ca439385f5aa8c0cf716aa8.tar.gz
postgresql-2afa73a9e8545b880ca439385f5aa8c0cf716aa8.zip
Clarify NULLIF example
found by "Vesa-Matti J Kari" <vmkari@cc.helsinki.fi>
-rw-r--r--doc/src/sgml/func.sgml7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index cbadf0f99a1..b84f7d18dd7 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -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>