summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pl/plpgsql/src/pl_exec.c1
-rw-r--r--src/pl/tcl/pltcl.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c
index 68e7941d18..a3bde05886 100644
--- a/src/pl/plpgsql/src/pl_exec.c
+++ b/src/pl/plpgsql/src/pl_exec.c
@@ -2949,6 +2949,7 @@ exec_stmt_dynexecute(PLpgSQL_execstate *estate,
case SPI_OK_UPDATE_RETURNING:
case SPI_OK_DELETE_RETURNING:
case SPI_OK_UTILITY:
+ case SPI_OK_REWRITTEN:
break;
case 0:
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c
index 0af81e8073..645856ebd1 100644
--- a/src/pl/tcl/pltcl.c
+++ b/src/pl/tcl/pltcl.c
@@ -1825,6 +1825,7 @@ pltcl_process_SPI_result(Tcl_Interp *interp,
break;
case SPI_OK_UTILITY:
+ case SPI_OK_REWRITTEN:
if (tuptable == NULL)
{
Tcl_SetResult(interp, "0", TCL_STATIC);