Allow the parameters to PL/PgSQL's RAISE statement to be expressions,
Neil Conway <neilc@samurai.com>
Allow the parameters to PL/PgSQL's RAISE statement to be expressions, instead of just scalar variables. Add regression tests and update the documentation. Along the way, remove some redundant error checking code from exec_stmt_perform(). Original patch from Pavel Stehule, reworked by Neil Conway.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plpgsql.sgml | modified | +4 −4 |
| src/pl/plpgsql/src/gram.y | modified | +30 −33 |
| src/pl/plpgsql/src/pl_exec.c | modified | +9 −19 |
| src/pl/plpgsql/src/pl_funcs.c | modified | +15 −7 |
| src/pl/plpgsql/src/plpgsql.h | modified | +2 −2 |
| src/test/regress/expected/plpgsql.out | modified | +38 −16 |
| src/test/regress/sql/plpgsql.sql | modified | +26 −8 |