diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 2 | ||||
-rw-r--r-- | src/whereInt.h | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/where.c b/src/where.c index ccecccb12..f914004b2 100644 --- a/src/where.c +++ b/src/where.c @@ -4286,7 +4286,6 @@ static int whereLoopAddBtreeIndex( testcase( eOp & WO_IN ); pNew->nOut += pTerm->truthProb; pNew->nOut -= nIn; - pNew->wsFlags |= WHERE_LIKELIHOOD; }else{ #ifdef SQLITE_ENABLE_STAT3_OR_STAT4 tRowcnt nOut = 0; @@ -4295,7 +4294,6 @@ static int whereLoopAddBtreeIndex( && pNew->u.btree.nEq<=pProbe->nSampleCol && OptimizationEnabled(db, SQLITE_Stat3) && ((eOp & WO_IN)==0 || !ExprHasProperty(pTerm->pExpr, EP_xIsSelect)) - && (pNew->wsFlags & WHERE_LIKELIHOOD)==0 ){ Expr *pExpr = pTerm->pExpr; if( (eOp & (WO_EQ|WO_ISNULL))!=0 ){ diff --git a/src/whereInt.h b/src/whereInt.h index 010cd6e8a..72e7530db 100644 --- a/src/whereInt.h +++ b/src/whereInt.h @@ -458,4 +458,3 @@ struct WhereInfo { #define WHERE_AUTO_INDEX 0x00004000 /* Uses an ephemeral index */ #define WHERE_SKIPSCAN 0x00008000 /* Uses the skip-scan algorithm */ #define WHERE_UNQ_WANTED 0x00010000 /* WHERE_ONEROW would have been helpful*/ -#define WHERE_LIKELIHOOD 0x00020000 /* A likelihood() is affecting nOut */ |