aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-11-09 00:10:33 +0000
committerdrh <drh@noemail.net>2016-11-09 00:10:33 +0000
commit9b4eaebc68ec3a209c698b1220ef2bc49cdb41dc (patch)
treeddc38da5766092a4f8d19dbdd4ecc892152599a4 /src/wherecode.c
parent3b908d41a0d3800a6ebe5dff42f4117fc342105c (diff)
downloadsqlite-9b4eaebc68ec3a209c698b1220ef2bc49cdb41dc.tar.gz
sqlite-9b4eaebc68ec3a209c698b1220ef2bc49cdb41dc.zip
Enhance the OP_IdxInsert opcode to optionally accept unpacked key material.
FossilOrigin-Name: 89d958abbac45f2ca5954080cd9e74ec9a07ebb2
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index c095ce7c8..d547a7117 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -1844,7 +1844,8 @@ Bitmask sqlite3WhereCodeOneLoopStart(
}
if( iSet>=0 ){
sqlite3VdbeAddOp3(v, OP_MakeRecord, r, nPk, regRowid);
- sqlite3VdbeAddOp3(v, OP_IdxInsert, regRowset, regRowid, 0);
+ sqlite3VdbeAddOp4Int(v, OP_IdxInsert, regRowset, regRowid,
+ r, nPk);
if( iSet ) sqlite3VdbeChangeP5(v, OPFLAG_USESEEKRESULT);
}