Skip to content

Commit a84171b

Browse files
committed
Add documentation clarification for IS [NOT] NULL and row-valued
expressions.
1 parent 347dd6a commit a84171b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.427 2008/04/04 18:45:36 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.428 2008/04/07 00:51:27 momjian Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -344,7 +344,11 @@
344344
<literal>IS NULL</> is true when the row expression itself is null
345345
or when all the row's fields are null, while
346346
<literal>IS NOT NULL</> is true when the row expression itself is non-null
347-
and all the row's fields are non-null.
347+
and all the row's fields are non-null. Because of this behavior,
348+
<literal>IS NULL</> and <literal>IS NOT NULL</> do not always return
349+
inverse results for row-valued expressions, i.e. a row-valued
350+
expression that contains both NULL and non-null values will return false
351+
for both tests.
348352
This definition conforms to the SQL standard, and is a change from the
349353
inconsistent behavior exhibited by <productname>PostgreSQL</productname>
350354
versions prior to 8.2.

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