pgsql: Check number of parameters in RAISE statement at compile time.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Check number of parameters in RAISE statement at compile time.
Дата
Msg-id E1XOnhF-0000et-3R@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Refactor per-page logic common to all redo routines to a new fun
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Issue clearer notice when inherited merged columns are moved