aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-06-11 02:32:50 +0000
committerdrh <drh@noemail.net>2013-06-11 02:32:50 +0000
commit8a4380d76156ba0ffbcdb64b5e37f82dee6385c6 (patch)
treea86fb4d78bd38d66289dad3d4f63fda4733af6ab /src/where.c
parent8636e9c55cb46f8923ebbb8a1014010d9c813472 (diff)
downloadsqlite-8a4380d76156ba0ffbcdb64b5e37f82dee6385c6.tar.gz
sqlite-8a4380d76156ba0ffbcdb64b5e37f82dee6385c6.zip
Fixes to EXPLAIN QUERY PLAN output. Change weights back to something closer
to what they are in legacy. More test case fixes. FossilOrigin-Name: 36373b85f9a97840aa06e24ae31c12fcfbae084e
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index 4a27b9e38..330faf771 100644
--- a/src/where.c
+++ b/src/where.c
@@ -4308,7 +4308,7 @@ static int whereLoopAddBtreeIndex(
}else{
/* Each row involves a step of the index, then a binary search of
** the main table */
- WhereCost rStepAndSearch = rLogSize>80 ? rLogSize-80 : 1;
+ WhereCost rStepAndSearch = whereCostAdd(10, rLogSize>17 ? rLogSize-17 : 1);
pNew->rRun = whereCostAdd(pNew->rRun, rStepAndSearch);
}
/* TBD: Adjust nOut for additional constraints */