Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jun 2018 09:38:46 +0000 (11:38 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jun 2018 09:38:46 +0000 (11:38 +0200)
commitc9301deb9bf86aaf9144a66026bc121a3eededee
tree96c27298911114cbd6dfdb9c9cef0fc8db2ead57
parenta40cff8956e842f737739d93a7b160f0b4a03d13
Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL

The previous message for SPI_ERROR_TRANSACTION claimed "cannot begin/end
transactions in PL/pgSQL", but that is no longer true.  Nevertheless,
the error can still happen, so reword the messages.  The error cases in
exec_prepare_plan() could never happen, so remove them.
src/pl/plpgsql/src/expected/plpgsql_transaction.out
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/sql/plpgsql_transaction.sql