diff options
author | Neil Conway <neilc@samurai.com> | 2005-06-14 06:43:15 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-06-14 06:43:15 +0000 |
commit | d6636543c4becc4ba9989af8e5b490e1ee2e7c0e (patch) | |
tree | 93479621c179876cee82edb2c79293c975b0a8c4 /doc/src | |
parent | bd6bf50b032a6d095c7f1513aa209d632b264a2f (diff) | |
download | postgresql-d6636543c4becc4ba9989af8e5b490e1ee2e7c0e.tar.gz postgresql-d6636543c4becc4ba9989af8e5b490e1ee2e7c0e.zip |
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.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/plpgsql.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index c043c78fea3..13897275278 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.71 2005/06/10 16:23:09 neilc Exp $ +$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.72 2005/06/14 06:43:14 neilc Exp $ --> <chapter id="plpgsql"> @@ -2533,9 +2533,9 @@ RAISE <replaceable class="parameter">level</replaceable> '<replaceable class="pa <para> Inside the format string, <literal>%</literal> is replaced by the next optional argument's string representation. Write - <literal>%%</literal> to emit a literal <literal>%</literal>. Note - that the optional arguments must presently be simple variables, - not expressions, and the format must be a simple string literal. + <literal>%%</literal> to emit a literal <literal>%</literal>. + Arguments can be simple variables or expressions, + and the format must be a simple string literal. </para> <!-- |