OSDN Git Service

Fix plperl and pltcl error handling per my previous proposal. SPI
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 21:17:07 +0000 (21:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 21:17:07 +0000 (21:17 +0000)
commit35f49941337827c6361af1939b582368022733e2
treed6abe814f92c44c1abf0c6f1193f799167d588ce
parenta3b663dfea25944bc59d7524e04e6c5f848b66d2
Fix plperl and pltcl error handling per my previous proposal.  SPI
operations are now run as subtransactions, so that errors in them
can be reported as ordinary Perl or Tcl errors and caught by the
normal error handling convention of those languages.  Also do some
minor code cleanup in pltcl.c: extract a large chunk of duplicated
code in pltcl_SPI_execute and pltcl_SPI_execute_plan into a shared
subroutine.
doc/src/sgml/plperl.sgml
doc/src/sgml/pltcl.sgml
doc/src/sgml/release.sgml
src/pl/plperl/plperl.c
src/pl/tcl/pltcl.c
src/pl/tcl/test/runtest
src/pl/tcl/test/test_queries.sql
src/pl/tcl/test/test_setup.sql