diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-12 12:04:43 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-12 12:04:43 +0200 |
commit | 5b5a12395ccbb72e8a63235f825b6aa45abab1ba (patch) | |
tree | 751fb7de42fd3babd6d472d41ae5178840e7c01d /mysql-test/t/heap.test | |
parent | e997201180a30f5f5652c2ad2ec51992986248f6 (diff) | |
download | mariadb-git-5b5a12395ccbb72e8a63235f825b6aa45abab1ba.tar.gz |
BUG#8924 'Explain' shows different strategy
- If number of records in table is 4, the calculated cost for using "index" and "range" become so close so that any rounding errors becomes visible.
- Added one more record to the tables for heap test and expoect "range" to be selected
- Decrease number of records in t1 for range and expect "index" to be choosen.
mysql-test/r/heap.result:
Add one more record to table t1 and expect explain to use "range"
mysql-test/r/heap_btree.result:
Add one more record to table t1 and expect explain to use "range"
mysql-test/r/heap_hash.result:
Add one more record to table t1 and expect explain to use "range"
mysql-test/r/range.result:
Update results
mysql-test/t/heap.test:
Add one more record to table t1 and expect explain to use "range"
mysql-test/t/heap_btree.test:
Add one more record to table t1 and expect explain to use "range"
mysql-test/t/heap_hash.test:
Add one more record to table t1 in order for optimizer to select use of "range" deterministic
mysql-test/t/range.test:
Remove one record from table t1 to avoid that cost for "index" and "range" are so close that rounding error become visible.
Diffstat (limited to 'mysql-test/t/heap.test')
-rw-r--r-- | mysql-test/t/heap.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/heap.test b/mysql-test/t/heap.test index c36474bda30..55429aa5c09 100644 --- a/mysql-test/t/heap.test +++ b/mysql-test/t/heap.test @@ -34,7 +34,7 @@ select * from t1; drop table t1; create table t1 (a int not null) engine=heap; -insert into t1 values (869751),(736494),(226312),(802616); +insert into t1 values (869751),(736494),(226312),(802616),(728912); select * from t1 where a > 736494; alter table t1 add unique uniq_id(a); select * from t1 where a > 736494; |