diff options
author | dan <dan@noemail.net> | 2016-07-29 18:12:12 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2016-07-29 18:12:12 +0000 |
commit | 145b4ea519b7826e7905628c479549994e405b0b (patch) | |
tree | 146ca79f037aed1d233d1a6c112b9135fa1a905e /src/expr.c | |
parent | 7b35a77b1a389d87cb5df356266b400e07d55afb (diff) | |
download | sqlite-145b4ea519b7826e7905628c479549994e405b0b.tar.gz sqlite-145b4ea519b7826e7905628c479549994e405b0b.zip |
Change the way "(a, b) = (SELECT *)" expressions are handled in where.c if there is an index on one of the columns only.
FossilOrigin-Name: 4dfebff2924f46284d5b9cda69175f79b29d6028
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/expr.c b/src/expr.c index 2921898d3..3dcb73ff1 100644 --- a/src/expr.c +++ b/src/expr.c @@ -3512,18 +3512,6 @@ int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){ break; } - case TK_SELECT_COLUMN: { - Expr *pLeft = pExpr->pLeft; - assert( pLeft ); - assert( pLeft->op==TK_SELECT || pLeft->op==TK_REGISTER ); - if( pLeft->op==TK_SELECT ){ - pLeft->iTable = sqlite3CodeSubselect(pParse, pLeft, 0, 0); - pLeft->op = TK_REGISTER; - } - inReg = pLeft->iTable + pExpr->iColumn; - break; - } - /* ** Form A: ** CASE x WHEN e1 THEN r1 WHEN e2 THEN r2 ... WHEN eN THEN rN ELSE y END |