summaryrefslogtreecommitdiff
path: root/mysql-test/t/heap_hash.test
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2005-04-12 12:04:43 +0200
committermsvensson@neptunus.(none) <>2005-04-12 12:04:43 +0200
commit7387030e6762dbf27380305286b5f848b1fe20f8 (patch)
tree751fb7de42fd3babd6d472d41ae5178840e7c01d /mysql-test/t/heap_hash.test
parentf9dd856d9e4f0363d1059b0e433dd6d1ea3cecba (diff)
downloadmariadb-git-7387030e6762dbf27380305286b5f848b1fe20f8.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.
Diffstat (limited to 'mysql-test/t/heap_hash.test')
-rw-r--r--mysql-test/t/heap_hash.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/heap_hash.test b/mysql-test/t/heap_hash.test
index 6d27f19dfad..46669dd2b8f 100644
--- a/mysql-test/t/heap_hash.test
+++ b/mysql-test/t/heap_hash.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 using HASH (a);
select * from t1 where a > 736494;