mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
abort storing query to query cache if warnings appeared (BUG#9414)
mysql-test/r/query_cache.result: Query with warning prohibited to query cache mysql-test/t/query_cache.test: Query with warning prohibited to query cache sql/sql_error.cc: abort storing query to query cache if warnings appeared
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -730,4 +730,23 @@ flush query cache;
|
||||
|
||||
drop table t1, t2;
|
||||
|
||||
#
|
||||
# Query with warning prohibited to query cache (BUG#9414)
|
||||
#
|
||||
flush status;
|
||||
CREATE TABLE t1 (
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
KEY `date` (`date`)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
INSERT INTO t1 VALUES ('20050326');
|
||||
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 '20050328 0:0:0';
|
||||
SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 0:0:0';
|
||||
show status like "Qcache_queries_in_cache";
|
||||
show status like "Qcache_inserts";
|
||||
show status like "Qcache_hits";
|
||||
drop table t1;
|
||||
|
||||
set GLOBAL query_cache_size=0;
|
||||
|
Reference in New Issue
Block a user