From 8de78061ad8e27d67f903aba07005fd3790a52d6 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 21 Jan 2009 11:13:14 +0000 Subject: [PATCH] Forgot to handle the new SPI_OK_REWRITTEN result code in a couple places. --- src/pl/plpgsql/src/pl_exec.c | 1 + src/pl/tcl/pltcl.c | 1 + 2 files changed, 2 insertions(+) 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); -- 2.39.5