]> granicus.if.org Git - postgresql/commitdiff
Document IS [NOT] OF, which was added in 7.3.
authorBruce Momjian <bruce@momjian.us>
Tue, 20 Feb 2007 00:25:05 +0000 (00:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 20 Feb 2007 00:25:05 +0000 (00:25 +0000)
doc/src/sgml/func.sgml
doc/src/sgml/syntax.sgml

index 2f4e4d165d8436b682795cb72d4136c2f725d6ea..45b70621d7a75ac67f6cb5e4a16edaa25885ffb1 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.365 2007/02/19 22:51:44 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.366 2007/02/20 00:25:05 momjian Exp $ -->
 
  <chapter id="functions">
   <title>Functions and Operators</title>
     <literal>IS NOT NULL</literal>, respectively, except that the input
     expression must be of Boolean type.
    </para>
+   <para>
+    <indexterm>
+     <primary>IS OF</primary>
+    </indexterm>
+    <indexterm>
+     <primary>IS NOT OF</primary>
+    </indexterm>
+    It is possible to check the data type of an expression using the
+    constructs
+<synopsis>
+<replaceable>expression</replaceable> IS OF (typename, ...)
+<replaceable>expression</replaceable> IS NOT OF (typename, ...)
+</synopsis>
+    They return a boolean value based on whether the expression's data
+    type is one of the listed data types.
   </sect1>
 
   <sect1 id="functions-math">
index ad702f6326395e84db7584069ceb6f0906a3d99a..a9bd06a03ee310f3e6fa027c84214d8140e4dba8 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.115 2007/02/06 09:16:07 petere Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.116 2007/02/20 00:25:05 momjian Exp $ -->
 
 <chapter id="sql-syntax">
  <title>SQL Syntax</title>
@@ -847,7 +847,8 @@ SELECT (5 !) - 6;
       <row>
        <entry><token>IS</token></entry>
        <entry></entry>
-       <entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS UNKNOWN</>, <literal>IS NULL</></entry>
+       <entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS
+       UNKNOWN</>, <literal>IS NULL</>, <literal>IS OF</></entry>
       </row>
 
       <row>