From be8100d64ec93ccd8160b37379ba189aab4d0ef1 Mon Sep 17 00:00:00 2001
From: Neil Conway
Date: Sun, 11 Dec 2005 10:54:28 +0000
Subject: Implement IS NOT DISTINCT FROM, update the regression tests and docs.
Patch from Pavel Stehule, minor fixups by myself.
---
doc/src/sgml/func.sgml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index f3df618179..8e60ba63c8 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,5 +1,5 @@
@@ -345,16 +345,24 @@ PostgreSQL documentation
IS DISTINCT FROM
+
+ IS NOT DISTINCT FROM
+
The ordinary comparison operators yield null (signifying unknown>)
when either input is null. Another way to do comparisons is with the
IS DISTINCT FROM construct:
expression IS DISTINCT FROM expression
+expression IS NOT DISTINCT FROM expression
- For non-null inputs this is the same as the <>> operator.
- However, when both inputs are null it will return false, and when just
- one input is null it will return true. Thus it effectively acts as though
- null were a normal data value, rather than unknown>.
+ For non-null inputs, IS DISTINCT FROM this is
+ the same as the <>> operator. However, when both
+ inputs are null it will return false, and when just one input is
+ null it will return true. Similarly, IS NOT DISTINCT
+ FROM is identical to = for non-null
+ inputs, returns true when both inputs are null, and false
+ otherwise. Thus, these constructs effectively act as though null
+ were a normal data value, rather than unknown>.
--
cgit v1.2.3