diff options
author | drh <drh@noemail.net> | 2014-07-31 20:16:08 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-07-31 20:16:08 +0000 |
commit | 37e08081f3da7ceab00ff4db996510f924de931a (patch) | |
tree | 24eb9be225118f294292c6bb8fdab48e3781ec71 /src/expr.c | |
parent | 202cb641898ae45a957a1543e2e014335601bbe9 (diff) | |
download | sqlite-37e08081f3da7ceab00ff4db996510f924de931a.tar.gz sqlite-37e08081f3da7ceab00ff4db996510f924de931a.zip |
Omit a pointless OP_Null when processing a value-list RHS of an IN operator
where the LHS is a rowid.
FossilOrigin-Name: 1361450a9dfe9476e8df98f370a3695752252245
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 94647e514..aa55ff7af 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1801,7 +1801,7 @@ int sqlite3CodeSubselect( /* Loop through each expression in <exprlist>. */ r1 = sqlite3GetTempReg(pParse); r2 = sqlite3GetTempReg(pParse); - sqlite3VdbeAddOp2(v, OP_Null, 0, r2); + if( isRowid ) sqlite3VdbeAddOp2(v, OP_Null, 0, r2); for(i=pList->nExpr, pItem=pList->a; i>0; i--, pItem++){ Expr *pE2 = pItem->pExpr; int iValToIns; |