1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

allow to look up queries with leading comments

BitKeeper/etc/ignore:
  Added libmysqld/sp_cache.cc to the ignore list
mysql-test/r/query_cache.result:
  test of query with leding comment
mysql-test/t/query_cache.test:
  test of query with leding comment
This commit is contained in:
unknown
2003-07-18 16:34:50 +03:00
parent c8d7ca2b1e
commit c64dda5943
4 changed files with 48 additions and 4 deletions

View File

@ -699,3 +699,27 @@ Variable_name Value
Qcache_queries_in_cache 2
SET OPTION SQL_SELECT_LIMIT=DEFAULT;
drop table t1;
create table t1 (a int);
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 0
show status like "Qcache_inserts";
Variable_name Value
Qcache_inserts 41
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 13
/**/ select * from t1;
a
/**/ select * from t1;
a
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 1
show status like "Qcache_inserts";
Variable_name Value
Qcache_inserts 42
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 14
drop table t1;