Skip to content
Snippets Groups Projects
Commit a9aad1b8 authored by Tom Lane's avatar Tom Lane
Browse files

Document the behavior of STRICT VARIADIC functions.

parent bbdf72b0
No related branches found
No related tags found
No related merge requests found
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.88 2009/10/08 02:39:14 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.89 2010/02/14 00:48:12 tgl Exp $
--> -->
<refentry id="SQL-CREATEFUNCTION"> <refentry id="SQL-CREATEFUNCTION">
...@@ -585,6 +585,13 @@ CREATE FUNCTION foo(int, int default 42) ... ...@@ -585,6 +585,13 @@ CREATE FUNCTION foo(int, int default 42) ...
existing calls of the function do not stop working when it is replaced. existing calls of the function do not stop working when it is replaced.
</para> </para>
<para>
If a function is declared <literal>STRICT</> with a <literal>VARIADIC</>
argument, the strictness check tests that the variadic array <emphasis>as
a whole</> is non-null. The function will still be called if the
array has non-null elements.
</para>
</refsect1> </refsect1>
<refsect1 id="sql-createfunction-examples"> <refsect1 id="sql-createfunction-examples">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment