]> granicus.if.org Git - postgresql/commit
Be more consistent about reporting SPI errors in the various PLs.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Jul 2004 20:55:45 +0000 (20:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Jul 2004 20:55:45 +0000 (20:55 +0000)
commitad4d2e9711194e5c0c8dd00ff458085bf2a56c0c
tree10f5b0539447bd5b11b8a8973bacaba29f25a7bd
parentda4a0dab596a28a2a3f208aece9097cdbaf7cccd
Be more consistent about reporting SPI errors in the various PLs.
Create a shared function to convert a SPI error code into a string
(replacing near-duplicate code in several PLs), and use it anywhere
that a SPI function call error is reported.
src/backend/executor/spi.c
src/include/executor/spi.h
src/pl/plperl/spi_internal.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_handler.c
src/pl/plpython/plpython.c
src/pl/tcl/pltcl.c