Skip to content

Commit a9aad1b

Browse files
committed
Document the behavior of STRICT VARIADIC functions.
1 parent bbdf72b commit a9aad1b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/src/sgml/ref/create_function.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.88 2009/10/08 02:39:14 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.89 2010/02/14 00:48:12 tgl Exp $
33
-->
44

55
<refentry id="SQL-CREATEFUNCTION">
@@ -585,6 +585,13 @@ CREATE FUNCTION foo(int, int default 42) ...
585585
existing calls of the function do not stop working when it is replaced.
586586
</para>
587587

588+
<para>
589+
If a function is declared <literal>STRICT</> with a <literal>VARIADIC</>
590+
argument, the strictness check tests that the variadic array <emphasis>as
591+
a whole</> is non-null. The function will still be called if the
592+
array has non-null elements.
593+
</para>
594+
588595
</refsect1>
589596

590597
<refsect1 id="sql-createfunction-examples">

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