aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2009-02-24 10:14:40 +0000
committerdanielk1977 <danielk1977@noemail.net>2009-02-24 10:14:40 +0000
commit2d2e7bd32e7267bd9fe9c40a0b5c97cace2bd17e (patch)
treebe7e86a13b3a10703fb1d45fe1cb7eaa32da7a9d /src/where.c
parenta55331620e1162c2fef1fee80f0866cc0e379f46 (diff)
downloadsqlite-2d2e7bd32e7267bd9fe9c40a0b5c97cace2bd17e.tar.gz
sqlite-2d2e7bd32e7267bd9fe9c40a0b5c97cace2bd17e.zip
Reverse commit (6315) for now. (CVS 6317)
FossilOrigin-Name: 0e7c369c23a8767b4d3e5cdd47c14716992fb71a
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c17
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;