Reword SPI_ERROR_TRANSACTION errors in PL/pgSQL
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/expected/plpgsql_transaction.out | modified | +15 −1 |
| src/pl/plpgsql/src/pl_exec.c | modified | +4 −25 |
| src/pl/plpgsql/src/sql/plpgsql_transaction.sql | modified | +13 −1 |