git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 72e2db8) | patch
Improve plpgsql's RAISE command. It is now possible to attach DETAIL and
2008年5月13日 22:10:30 +0000 (22:10 +0000)
2008年5月13日 22:10:30 +0000 (22:10 +0000)
commit 4107478d374fae8299b6eb17fd13e65b7d8e026a
Improve plpgsql's RAISE command. It is now possible to attach DETAIL and
HINT fields to a user-thrown error message, and to specify the SQLSTATE
error code to use. The syntax has also been tweaked so that the
Oracle-compatible case "RAISE exception_name" works (though you won't get a
very nice error message if you just write that much). Lastly, support
the Oracle-compatible syntax "RAISE" with no parameters to re-throw
the current error from within an EXCEPTION block.

In passing, allow the syntax SQLSTATE 'nnnnn' within EXCEPTION lists,
so that there is a way to trap errors with custom SQLSTATE codes.

Pavel Stehule and Tom Lane
doc/src/sgml/plpgsql.sgml diff | blob | blame | history
src/pl/plpgsql/src/gram.y diff | blob | blame | history
src/pl/plpgsql/src/pl_comp.c diff | blob | blame | history
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
src/pl/plpgsql/src/pl_funcs.c diff | blob | blame | history
src/pl/plpgsql/src/plpgsql.h diff | blob | blame | history
src/pl/plpgsql/src/scan.l diff | blob | blame | history
src/test/regress/expected/plpgsql.out diff | blob | blame | history
src/test/regress/sql/plpgsql.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /