diff options
author | drh <drh@noemail.net> | 2016-05-26 20:56:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-05-26 20:56:38 +0000 |
commit | eeb9565a3e3397340a4dc79a8b693e35cdecfb7c (patch) | |
tree | a054e5793db17e2467c972bebaf97c3a7c72a3d8 /src/expr.c | |
parent | ce3c5011d9325adf3546505c45d40243db6e7eee (diff) | |
download | sqlite-eeb9565a3e3397340a4dc79a8b693e35cdecfb7c.tar.gz sqlite-eeb9565a3e3397340a4dc79a8b693e35cdecfb7c.zip |
Add a new OP_SeekRowid opcode, that combines the functions of OP_MustBeInt
and OP_NotExists. This makes the code slightly smaller and faster.
FossilOrigin-Name: ffe80a1bfa014943a614fc6993c1749b9bfec4c1
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index 9e3b664e8..156db96fa 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2222,8 +2222,7 @@ static void sqlite3ExprCodeIN( if( eType==IN_INDEX_ROWID ){ /* In this case, the RHS is the ROWID of table b-tree */ - sqlite3VdbeAddOp2(v, OP_MustBeInt, r1, destIfFalse); VdbeCoverage(v); - sqlite3VdbeAddOp3(v, OP_NotExists, pExpr->iTable, destIfFalse, r1); + sqlite3VdbeAddOp3(v, OP_SeekRowid, pExpr->iTable, destIfFalse, r1); VdbeCoverage(v); }else{ /* In this case, the RHS is an index b-tree. |