From c1008f0037ec9c738127c2fa6d7f6c88d885f45f Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 2 Sep 2014 15:53:06 +0300 Subject: 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 --- doc/src/sgml/plpgsql.sgml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/src') 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, % is replaced by the string representation of the next optional argument's value. Write %% to emit a literal %. + The number of arguments must match the number of % + placeholders in the format string, or an error is raised during + the compilation of the function. -- cgit v1.2.3