From: Bruce Momjian Date: Tue, 20 Feb 2007 00:25:05 +0000 (+0000) Subject: Document IS [NOT] OF, which was added in 7.3. X-Git-Tag: REL9_0_0~6023 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6126d3e70bc155e74e3ce8dfcbfecb502469528f;p=pg-rex%2Fsyncrep.git Document IS [NOT] OF, which was added in 7.3. --- 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