Commit 1beb95e3 authored by unknown's avatar unknown

Update test to deal with more relaxed datetime parsing.


mysql-test/r/query_cache.result:
  Updated results
mysql-test/t/query_cache.test:
  Change test to use a truly invalid date, now that dates like 
  '20050327 0:0:0' are handled as they are in 4.0.
parent c566fc08
...@@ -902,24 +902,24 @@ KEY `date` (`date`) ...@@ -902,24 +902,24 @@ KEY `date` (`date`)
) ENGINE=MyISAM; ) ENGINE=MyISAM;
INSERT INTO t1 VALUES ('20050326'); INSERT INTO t1 VALUES ('20050326');
INSERT INTO t1 VALUES ('20050325'); INSERT INTO t1 VALUES ('20050325');
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 0:0:0'; SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid';
COUNT(*) COUNT(*)
0 0
Warnings: Warnings:
Warning 1292 Truncated incorrect datetime value: '20050327 0:0:0' Warning 1292 Truncated incorrect datetime value: '20050327 invalid'
Warning 1292 Truncated incorrect datetime value: '20050327 0:0:0' Warning 1292 Truncated incorrect datetime value: '20050327 invalid'
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050328 0:0:0'; SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050328 invalid';
COUNT(*) COUNT(*)
0 0
Warnings: Warnings:
Warning 1292 Truncated incorrect datetime value: '20050328 0:0:0' Warning 1292 Truncated incorrect datetime value: '20050328 invalid'
Warning 1292 Truncated incorrect datetime value: '20050328 0:0:0' Warning 1292 Truncated incorrect datetime value: '20050328 invalid'
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 0:0:0'; SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid';
COUNT(*) COUNT(*)
0 0
Warnings: Warnings:
Warning 1292 Truncated incorrect datetime value: '20050327 0:0:0' Warning 1292 Truncated incorrect datetime value: '20050327 invalid'
Warning 1292 Truncated incorrect datetime value: '20050327 0:0:0' Warning 1292 Truncated incorrect datetime value: '20050327 invalid'
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
Variable_name Value Variable_name Value
Qcache_queries_in_cache 0 Qcache_queries_in_cache 0
......
...@@ -679,9 +679,9 @@ CREATE TABLE t1 ( ...@@ -679,9 +679,9 @@ CREATE TABLE t1 (
INSERT INTO t1 VALUES ('20050326'); INSERT INTO t1 VALUES ('20050326');
INSERT INTO t1 VALUES ('20050325'); INSERT INTO t1 VALUES ('20050325');
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 0:0:0'; SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid';
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050328 0:0:0'; SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050328 invalid';
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 0:0:0'; SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid';
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts"; show status like "Qcache_inserts";
show status like "Qcache_hits"; show status like "Qcache_hits";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment