aboutsummaryrefslogtreecommitdiff
path: root/src/delete.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-12-24 16:00:28 +0000
committerdrh <drh@noemail.net>2009-12-24 16:00:28 +0000
commitb6da74ebd5140fac15bb007ce21e3b79b981f98e (patch)
tree469fc9a139de5d332f6b84302bd0b4ffad43ec4b /src/delete.c
parent07096f68ae9f9de330350cafc6d11b37d8e328f7 (diff)
downloadsqlite-b6da74ebd5140fac15bb007ce21e3b79b981f98e.tar.gz
sqlite-b6da74ebd5140fac15bb007ce21e3b79b981f98e.zip
Immediately purge entries from the column cache when the associated register
undergoes an affinity change. Ticket [eb5548a849]. Enhance the SQLITE_TESTCTRL_OPTIMIZATIONS setting of sqlite3_test_control so that it can disable the column cache for testing purposes, in an effort to prevent future problems of a similar nature to this one. FossilOrigin-Name: ea4e57e1c1b6663ceb12872e31a8503f6c14e3d8
Diffstat (limited to 'src/delete.c')
-rw-r--r--src/delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delete.c b/src/delete.c
index 5b3088828..18ed22418 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -364,7 +364,7 @@ void sqlite3DeleteFrom(
sqlite3VdbeAddOp2(v, OP_Null, 0, iRowSet);
pWInfo = sqlite3WhereBegin(pParse, pTabList, pWhere,0,WHERE_DUPLICATES_OK);
if( pWInfo==0 ) goto delete_from_cleanup;
- regRowid = sqlite3ExprCodeGetColumn(pParse, pTab, -1, iCur, iRowid, 0);
+ regRowid = sqlite3ExprCodeGetColumn(pParse, pTab, -1, iCur, iRowid);
sqlite3VdbeAddOp2(v, OP_RowSetAdd, iRowSet, regRowid);
if( db->flags & SQLITE_CountRows ){
sqlite3VdbeAddOp2(v, OP_AddImm, memCnt, 1);