diff options
author | drh <drh@noemail.net> | 2013-06-26 11:43:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-06-26 11:43:18 +0000 |
commit | 4580cfb93ea377f5bae4a182cf6d1e15deade81e (patch) | |
tree | e5de67133da8d3d85a535ca836ef279de4bc0445 /src/expr.c | |
parent | adbae616bdbbd264514df275958ef566250b524b (diff) | |
parent | 2c036cff3d2fa5e993448ef1aeaf9e1eab388749 (diff) | |
download | sqlite-4580cfb93ea377f5bae4a182cf6d1e15deade81e.tar.gz sqlite-4580cfb93ea377f5bae4a182cf6d1e15deade81e.zip |
Cut over the next generation query planner. Increase the version number
to 3.8.0.
FossilOrigin-Name: 0fe31f60cadc5fe5a9d87e110bfaed5fd026cba1
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c index c1a27ebf8..2c0419aa2 100644 --- a/src/expr.c +++ b/src/expr.c @@ -920,6 +920,7 @@ ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){ pItem->zSpan = sqlite3DbStrDup(db, pOldItem->zSpan); pItem->sortOrder = pOldItem->sortOrder; pItem->done = 0; + pItem->bSpanIsTab = pOldItem->bSpanIsTab; pItem->iOrderByCol = pOldItem->iOrderByCol; pItem->iAlias = pOldItem->iAlias; } @@ -1596,15 +1597,15 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, int *prNotFound){ /* Could not found an existing table or index to use as the RHS b-tree. ** We will have to generate an ephemeral table to do the job. */ - double savedNQueryLoop = pParse->nQueryLoop; + u32 savedNQueryLoop = pParse->nQueryLoop; int rMayHaveNull = 0; eType = IN_INDEX_EPH; if( prNotFound ){ *prNotFound = rMayHaveNull = ++pParse->nMem; sqlite3VdbeAddOp2(v, OP_Null, 0, *prNotFound); }else{ - testcase( pParse->nQueryLoop>(double)1 ); - pParse->nQueryLoop = (double)1; + testcase( pParse->nQueryLoop>0 ); + pParse->nQueryLoop = 0; if( pX->pLeft->iColumn<0 && !ExprHasAnyProperty(pX, EP_xIsSelect) ){ eType = IN_INDEX_ROWID; } |