Skip to content

Commit 6126d3e

Browse files
committed
Document IS [NOT] OF, which was added in 7.3.
1 parent 077d753 commit 6126d3e

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.365 2007/02/19 22:51:44 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.366 2007/02/20 00:25:05 momjian Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -411,6 +411,22 @@
411411
<literal>IS NOT NULL</literal>, respectively, except that the input
412412
expression must be of Boolean type.
413413
</para>
414+
415+
<para>
416+
<indexterm>
417+
<primary>IS OF</primary>
418+
</indexterm>
419+
<indexterm>
420+
<primary>IS NOT OF</primary>
421+
</indexterm>
422+
It is possible to check the data type of an expression using the
423+
constructs
424+
<synopsis>
425+
<replaceable>expression</replaceable> IS OF (typename, ...)
426+
<replaceable>expression</replaceable> IS NOT OF (typename, ...)
427+
</synopsis>
428+
They return a boolean value based on whether the expression's data
429+
type is one of the listed data types.
414430
</sect1>
415431

416432
<sect1 id="functions-math">

doc/src/sgml/syntax.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.115 2007/02/06 09:16:07 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.116 2007/02/20 00:25:05 momjian Exp $ -->
22

33
<chapter id="sql-syntax">
44
<title>SQL Syntax</title>
@@ -847,7 +847,8 @@ SELECT (5 !) - 6;
847847
<row>
848848
<entry><token>IS</token></entry>
849849
<entry></entry>
850-
<entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS UNKNOWN</>, <literal>IS NULL</></entry>
850+
<entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS
851+
UNKNOWN</>, <literal>IS NULL</>, <literal>IS OF</></entry>
851852
</row>
852853

853854
<row>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy