Skip to content

Commit 2afa73a

Browse files
committed
Clarify NULLIF example
found by "Vesa-Matti J Kari" <vmkari@cc.helsinki.fi>
1 parent 846c364 commit 2afa73a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.482 2009/06/17 21:58:49 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.483 2009/07/22 18:07:26 petere Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -9193,8 +9193,9 @@ SELECT NULLIF(value, '(none)') ...
91939193
</programlisting>
91949194
</para>
91959195
<para>
9196-
If <replaceable>value1</replaceable> is <literal>(none)</>, return a null,
9197-
otherwise return <replaceable>value1</replaceable>.
9196+
In this example, if <literal>value</literal> is <literal>(none)</>,
9197+
null is returned, otherwise the value of <literal>value</literal>
9198+
is returned.
91989199
</para>
91999200

92009201
</sect2>

0 commit comments

Comments
 (0)