diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-09-26 19:33:26 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-09-26 19:33:26 +0000 |
commit | 846b0826ab7a42791b12cc79bf28bb6045336a11 (patch) | |
tree | 9a3e8c1b7be24c636b9cec28d4f565bedf2a02fd /ext/pdo_sqlite/sqlite/src/update.c | |
parent | 15c9f414a6d3ffb65c93f0377d2ecaf6a2dac7d0 (diff) | |
download | php-git-846b0826ab7a42791b12cc79bf28bb6045336a11.tar.gz |
MFH: upgraded bundled libsqlite3 to version 3.2.7
Diffstat (limited to 'ext/pdo_sqlite/sqlite/src/update.c')
-rw-r--r-- | ext/pdo_sqlite/sqlite/src/update.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_sqlite/sqlite/src/update.c b/ext/pdo_sqlite/sqlite/src/update.c index b1f28ad8cf..b6c6b8b1ed 100644 --- a/ext/pdo_sqlite/sqlite/src/update.c +++ b/ext/pdo_sqlite/sqlite/src/update.c @@ -259,13 +259,13 @@ void sqlite3Update( if( pParse->nested==0 ) sqlite3VdbeCountChanges(v); sqlite3BeginWriteOperation(pParse, 1, pTab->iDb); - /* If we are trying to update a view, construct that view into - ** a temporary table. + /* If we are trying to update a view, realize that view into + ** a ephemeral table. */ if( isView ){ Select *pView; pView = sqlite3SelectDup(pTab->pSelect); - sqlite3Select(pParse, pView, SRT_TempTable, iCur, 0, 0, 0, 0); + sqlite3Select(pParse, pView, SRT_VirtualTab, iCur, 0, 0, 0, 0); sqlite3SelectDelete(pView); } @@ -469,7 +469,7 @@ void sqlite3Update( ** all record selected by the WHERE clause have been updated. */ sqlite3VdbeAddOp(v, OP_Goto, 0, addr); - sqlite3VdbeChangeP2(v, addr, sqlite3VdbeCurrentAddr(v)); + sqlite3VdbeJumpHere(v, addr); /* Close all tables if there were no FOR EACH ROW triggers */ if( !triggers_exist ){ |