mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Incremental update. We are in the middle of modifying the index system
to support range queries without doing a complete table scan. (CVS 303) FossilOrigin-Name: e6ca23fa4569bc33065bf57ce7ce6132cd6a9de0
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains C code routines that are called by the parser
|
||||
** to handle UPDATE statements.
|
||||
**
|
||||
** $Id: update.c,v 1.20 2001/11/01 14:41:34 drh Exp $
|
||||
** $Id: update.c,v 1.21 2001/11/07 14:22:00 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -190,7 +190,7 @@ void sqliteUpdate(
|
||||
sqliteVdbeAddOp(v, OP_Column, base, pIdx->aiColumn[j]);
|
||||
}
|
||||
sqliteVdbeAddOp(v, OP_MakeIdxKey, pIdx->nColumn, 0);
|
||||
sqliteVdbeAddOp(v, OP_DeleteIdx, base+i+1, 0);
|
||||
sqliteVdbeAddOp(v, OP_IdxDelete, base+i+1, 0);
|
||||
}
|
||||
|
||||
/* Compute a completely new data for this record.
|
||||
@@ -213,7 +213,7 @@ void sqliteUpdate(
|
||||
sqliteVdbeAddOp(v, OP_Dup, j+pTab->nCol-pIdx->aiColumn[j], 0);
|
||||
}
|
||||
sqliteVdbeAddOp(v, OP_MakeIdxKey, pIdx->nColumn, 0);
|
||||
sqliteVdbeAddOp(v, OP_PutIdx, base+i+1, pIdx->isUnique);
|
||||
sqliteVdbeAddOp(v, OP_IdxPut, base+i+1, pIdx->isUnique);
|
||||
}
|
||||
|
||||
/* Write the new data back into the database.
|
||||
|
Reference in New Issue
Block a user