Allow the parameters to PL/PgSQL's RAISE statement to be expressions,
authorNeil Conway
Tue, 14 Jun 2005 06:43:15 +0000 (06:43 +0000)
committerNeil Conway
Tue, 14 Jun 2005 06:43:15 +0000 (06:43 +0000)
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.

doc/src/sgml/plpgsql.sgml
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_funcs.c
src/pl/plpgsql/src/plpgsql.h
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql

index c043c78fea3efb3ddf8ded119967a3be8b28067f..13897275278748b1dfc0d1ea3a498dc83df33196 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -2533,9 +2533,9 @@ RAISE level '
    
     Inside the format string, % is replaced by the
     next optional argument's string representation. Write
-    %% to emit a literal %Note
-    that the optional arguments must presently be simple variables,
-    not expressions, and the format must be a simple string literal.
+    %% to emit a literal %
+    Arguments can be simple variables or expressions, 
+    and the format must be a simple string literal.