mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Forgot to handle the new SPI_OK_REWRITTEN result code in a couple places.
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.230 2009/01/21 11:02:40 heikki Exp $
|
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.231 2009/01/21 11:13:14 heikki Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -2949,6 +2949,7 @@ exec_stmt_dynexecute(PLpgSQL_execstate *estate,
|
|||||||
case SPI_OK_UPDATE_RETURNING:
|
case SPI_OK_UPDATE_RETURNING:
|
||||||
case SPI_OK_DELETE_RETURNING:
|
case SPI_OK_DELETE_RETURNING:
|
||||||
case SPI_OK_UTILITY:
|
case SPI_OK_UTILITY:
|
||||||
|
case SPI_OK_REWRITTEN:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* pltcl.c - PostgreSQL support for Tcl as
|
* pltcl.c - PostgreSQL support for Tcl as
|
||||||
* procedural language (PL)
|
* procedural language (PL)
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.126 2009/01/14 20:01:52 petere Exp $
|
* $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.127 2009/01/21 11:13:14 heikki Exp $
|
||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
@ -1825,6 +1825,7 @@ pltcl_process_SPI_result(Tcl_Interp *interp,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SPI_OK_UTILITY:
|
case SPI_OK_UTILITY:
|
||||||
|
case SPI_OK_REWRITTEN:
|
||||||
if (tuptable == NULL)
|
if (tuptable == NULL)
|
||||||
{
|
{
|
||||||
Tcl_SetResult(interp, "0", TCL_STATIC);
|
Tcl_SetResult(interp, "0", TCL_STATIC);
|
||||||
|
Reference in New Issue
Block a user