diff options
author | Heikki Linnakangas | 2014-09-02 12:53:06 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2014-09-02 12:56:50 +0000 |
commit | c1008f0037ec9c738127c2fa6d7f6c88d885f45f (patch) | |
tree | 6832c92a64a63ee5321008d8d3a46cc170f6c7ce /doc/src | |
parent | f8f4227976a2cdb8ac7c611e49da03aa9e65e0d2 (diff) |
Check number of parameters in RAISE statement at compile time.
The number of % parameter markers in RAISE statement should match the number
of parameters given. We used to check that at execution time, but we have
all the information needed at compile time, so let's check it at compile
time instead. It's generally better to find mistakes earlier.
Marko Tiikkaja, reviewed by Fabien Coelho
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/plpgsql.sgml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 91fadb0f14d..f008e937eef 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -3403,6 +3403,9 @@ RAISE ; Inside the format string, <literal>%</literal> is replaced by the string representation of the next optional argument's value. Write <literal>%%</literal> to emit a literal <literal>%</literal>. + The number of arguments must match the number of <literal>%</> + placeholders in the format string, or an error is raised during + the compilation of the function. </para> <para> |