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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/c1008f0037ec9c738127c2fa6d7f6c88d885f45f
Modified Files
--------------
doc/src/sgml/plpgsql.sgml | 3 +++
src/pl/plpgsql/src/pl_exec.c | 14 ++++--------
src/pl/plpgsql/src/pl_gram.y | 38 +++++++++++++++++++++++++++++++++
src/test/regress/expected/plpgsql.out | 19 +++++++++++++----
src/test/regress/sql/plpgsql.sql | 11 +++++++---
5 files changed, 68 insertions(+), 17 deletions(-)