aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-06-02 21:00:34 +0000
committerdrh <drh@noemail.net>2014-06-02 21:00:34 +0000
commit7f80c7146f2c32777b5d4caebb80141a07cfc4f4 (patch)
tree607d74bb888dba381e3200dbca0da920e64d6e9f /src
parent974db61d9da64a8e343c4734ec896ee941f9b50c (diff)
downloadsqlite-7f80c7146f2c32777b5d4caebb80141a07cfc4f4.tar.gz
sqlite-7f80c7146f2c32777b5d4caebb80141a07cfc4f4.zip
Remove the WHERE_LIKELIHOOD bit, as it does not seem to effect any result.
FossilOrigin-Name: 1cbe7a0883e081611a50524517d70e0b6c5199d2
Diffstat (limited to 'src')
-rw-r--r--src/where.c2
-rw-r--r--src/whereInt.h1
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 */