Skip to content

Commit ab8faed

Browse files
author
Neil Conway
committed
Editorialization of some text discussing 'IS NULL' vs. '= NULL'.
1 parent 565b4f2 commit ab8faed

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

doc/src/sgml/func.sgml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.191 2004/03/05 02:41:14 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.192 2004/03/07 01:01:44 neilc Exp $
33
PostgreSQL documentation
44
-->
55

@@ -301,20 +301,22 @@ PostgreSQL documentation
301301
<literal><replaceable>expression</replaceable> = NULL</literal>
302302
because <literal>NULL</> is not <quote>equal to</quote>
303303
<literal>NULL</>. (The null value represents an unknown value,
304-
and it is not known whether two unknown values are equal.)
304+
and it is not known whether two unknown values are equal.) This
305+
behavior conforms to the SQL standard.
305306
</para>
306307

307308
<para>
308-
Some applications may (incorrectly) require that
309+
Some applications may expect that
309310
<literal><replaceable>expression</replaceable> = NULL</literal>
310311
returns true if <replaceable>expression</replaceable> evaluates to
311-
the null value. To support these applications, the run-time option
312-
<varname>transform_null_equals</varname> can be turned on (e.g.,
313-
<literal>SET transform_null_equals TO ON;</literal>).
314-
<productname>PostgreSQL</productname> will then convert
315-
<literal>x = NULL</literal> clauses to
316-
<literal>x IS NULL</literal>. This was
317-
the default behavior in releases 6.5 through 7.1.
312+
the null value. It is highly recommended that these applications
313+
be modified to comply with the SQL standard. However, if that
314+
cannot be done the <varname>transform_null_equals</varname>
315+
configuration variable is available. If it is enabled,
316+
<productname>PostgreSQL</productname> will convert <literal>x =
317+
NULL</literal> clauses to <literal>x IS NULL</literal>. This was
318+
the default behavior in <productname>PostgreSQL</productname>
319+
releases 6.5 through 7.1.
318320
</para>
319321

320322
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy