From 6126d3e70bc155e74e3ce8dfcbfecb502469528f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 20 Feb 2007 00:25:05 +0000 Subject: [PATCH] Document IS [NOT] OF, which was added in 7.3. --- doc/src/sgml/func.sgml | 18 +++++++++++++++++- doc/src/sgml/syntax.sgml | 5 +++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 2f4e4d165d..45b70621d7 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -411,6 +411,22 @@ IS NOT NULL, respectively, except that the input expression must be of Boolean type. + + + + IS OF + + + IS NOT OF + + It is possible to check the data type of an expression using the + constructs + +expression IS OF (typename, ...) +expression IS NOT OF (typename, ...) + + They return a boolean value based on whether the expression's data + type is one of the listed data types. diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index ad702f6326..a9bd06a03e 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,4 +1,4 @@ - + SQL Syntax @@ -847,7 +847,8 @@ SELECT (5 !) - 6; IS - IS TRUE, IS FALSE, IS UNKNOWN, IS NULL + IS TRUE, IS FALSE, IS + UNKNOWN, IS NULL, IS OF -- 2.11.0