Forgot to handle the new SPI_OK_REWRITTEN result code in a couple places.
authorHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 21 Jan 2009 11:13:14 +0000 (11:13 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 21 Jan 2009 11:13:14 +0000 (11:13 +0000)
src/pl/plpgsql/src/pl_exec.c
src/pl/tcl/pltcl.c

index 68e7941d18cf24c750089d2c38167ad7ef63db2c..a3bde05886b563dffaf5fed7ecdabdccc82d68f4 100644 (file)
@@ -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:
index 0af81e8073c57a411c361789297561594b8bb55b..645856ebd1d81ecb108f128182c41a05660385a2 100644 (file)
@@ -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);