diff options
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/where.c b/src/where.c index e76fc11cb..06eb5f99d 100644 --- a/src/where.c +++ b/src/where.c @@ -16,7 +16,7 @@ ** so is applicable. Because this module is responsible for selecting ** indices, you might also think of this module as the "query optimizer". ** -** $Id: where.c,v 1.372 2009/02/23 17:33:50 danielk1977 Exp $ +** $Id: where.c,v 1.373 2009/02/24 10:14:40 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -2035,21 +2035,6 @@ static void bestIndex( } } - if( pCost->plan.wsFlags==0 && pSrc->colUsed==0 && pSrc->usesRowid==0 ){ - Index *pSmallest = 0; - assert( pSrc->pIndex==0 ); - for(pProbe=pSrc->pTab->pIndex; pProbe; pProbe=pProbe->pNext){ - if( !pSmallest || pProbe->nColumn<pSmallest->nColumn ){ - pSmallest = pProbe; - } - } - if( pSmallest && pSmallest->nColumn<pSrc->pTab->nCol ){ - assert( pCost->plan.nEq==0 ); - pCost->plan.u.pIdx = pSmallest; - pCost->plan.wsFlags = WHERE_COLUMN_RANGE|WHERE_IDX_ONLY; - } - } - /* Report the best result */ pCost->plan.wsFlags |= eqTermMask; |