diff options
author | gluh@eagle.(none) <> | 2007-12-13 16:10:57 +0400 |
---|---|---|
committer | gluh@eagle.(none) <> | 2007-12-13 16:10:57 +0400 |
commit | d504588e7948b1f8ed815a78aeb263471a1b6635 (patch) | |
tree | 2c8c40e7d9d218e840756bed5ba5cbd07e40d13b /mysql-test/r/range.result | |
parent | 4f5868114a1fe46f139f80d894dd28f1f7c180c1 (diff) | |
parent | 9df070ed7c0f2877e71572e59aec871f4bc039fd (diff) | |
download | mariadb-git-d504588e7948b1f8ed815a78aeb263471a1b6635.tar.gz |
Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
Diffstat (limited to 'mysql-test/r/range.result')
-rw-r--r-- | mysql-test/r/range.result | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/range.result b/mysql-test/r/range.result index 108264b3bf2..005969c7f18 100644 --- a/mysql-test/r/range.result +++ b/mysql-test/r/range.result @@ -1149,3 +1149,21 @@ explain select * from t2 where a=1000 and b<11; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t2 ref a a 5 const 502 Using where drop table t1, t2; + +BUG#32198 "Comparison of DATE with DATETIME still not using indexes correctly" + +CREATE TABLE t1 ( +id int(11) NOT NULL auto_increment, +dateval date default NULL, +PRIMARY KEY (id), +KEY dateval (dateval) +) AUTO_INCREMENT=173; +INSERT INTO t1 VALUES +(1,'2007-01-01'),(2,'2007-01-02'),(3,'2007-01-03'),(4,'2007-01-04'), +(5,'2007-01-05'),(6,'2007-01-06'),(7,'2007-01-07'),(8,'2007-01-08'), +(9,'2007-01-09'),(10,'2007-01-10'),(11,'2007-01-11'); +This must use range access: +explain select * from t1 where dateval >= '2007-01-01 00:00:00' and dateval <= '2007-01-02 23:59:59'; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 range dateval dateval 4 NULL 2 Using where +drop table t1; |