From: Bruce Momjian Date: Tue, 20 Feb 2007 00:25:16 +0000 (+0000) Subject: Document IS [NOT] OF, which was added in 7.3. X-Git-Tag: REL8_2_4~49 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d9341ce1b8dfb92afae33adb088f00aae5cecbbe;p=users%2Fhanada%2Fpostgres.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 b00b139002..f125f37688 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 65c29b835c..fb064151b3 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