mirror of https://github.com/MariaDB/server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1057 lines
23 KiB
1057 lines
23 KiB
set GLOBAL query_cache_size=1355776;
|
|
drop table if exists t1;
|
|
create table t1 (a int not null);
|
|
insert into t1 values (1),(2),(3);
|
|
flush query cache;
|
|
flush query cache;
|
|
reset query cache;
|
|
flush status;
|
|
flush query cache;
|
|
flush query cache;
|
|
reset query cache;
|
|
flush status;
|
|
/* with comment first */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
-----------------------------------------------------
|
|
/* with comment first */select * from t1
|
|
-----------------------------------------------------
|
|
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 1
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 0
|
|
/* with comment first */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
/* with comment first */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
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 1
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 2
|
|
-----------------------------------------------------
|
|
# with comment first
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
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 1
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 2
|
|
# with comment first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
# with comment first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 2
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 2
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 2
|
|
-----------------------------------------------------
|
|
-- with comment first
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 2
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 2
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 2
|
|
-- with comment first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
-- with comment first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 3
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 3
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 2
|
|
-----------------------------------------------------
|
|
/* with comment first and "quote" */select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 3
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 3
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 2
|
|
/* with comment first and "quote" */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
/* with comment first and "quote" */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 4
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 4
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 3
|
|
-----------------------------------------------------
|
|
# with comment first and "quote"
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 4
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 4
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 3
|
|
# with comment first and "quote"
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
# with comment first and "quote"
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 5
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 5
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 3
|
|
-----------------------------------------------------
|
|
-- with comment first and "quote"
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 5
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 5
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 3
|
|
-- with comment first and "quote"
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
-- with comment first and "quote"
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 6
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 6
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 3
|
|
-----------------------------------------------------
|
|
/* with comment and whitespaces first */select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 6
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 6
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 3
|
|
/* with comment and whitespaces first */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
/* with comment and whitespaces first */select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 7
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 7
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 4
|
|
-----------------------------------------------------
|
|
# with comment and whitespaces first
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 7
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 7
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 4
|
|
# with comment and whitespaces first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
# with comment and whitespaces first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 8
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 8
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 4
|
|
-----------------------------------------------------
|
|
-- with comment and whitespaces first
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 8
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 8
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 4
|
|
-- with comment and whitespaces first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
-- with comment and whitespaces first
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 9
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 9
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 4
|
|
-----------------------------------------------------
|
|
select * /* internal comment */ from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 9
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 9
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 4
|
|
select * /* internal comment */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * /* internal comment */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 10
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 10
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 5
|
|
-----------------------------------------------------
|
|
select */* internal comment */ from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 10
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 10
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 5
|
|
select */* internal comment */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select */* internal comment */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 11
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 11
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 6
|
|
-----------------------------------------------------
|
|
select */* internal comment */from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 11
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 11
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 6
|
|
select */* internal comment */from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select */* internal comment */from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 12
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 12
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 7
|
|
-----------------------------------------------------
|
|
select * /* internal comment with "quote" */ from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 12
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 12
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 7
|
|
select * /* internal comment with "quote" */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * /* internal comment with "quote" */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 13
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 13
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 8
|
|
-----------------------------------------------------
|
|
select */* internal comment with "quote" */ from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 13
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 13
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 8
|
|
select */* internal comment with "quote" */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select */* internal comment with "quote" */ from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 14
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 14
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 9
|
|
-----------------------------------------------------
|
|
select */* internal comment with "quote" */from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 14
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 14
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 9
|
|
select */* internal comment with "quote" */from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select */* internal comment with "quote" */from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 15
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 15
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 10
|
|
-----------------------------------------------------
|
|
select * from t1
|
|
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 15
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 15
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 10
|
|
select * from t1
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 16
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 16
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 11
|
|
-----------------------------------------------------
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 16
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 16
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 11
|
|
select * from t1 ;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1 ;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 16
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 16
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 13
|
|
-----------------------------------------------------
|
|
select * from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 16
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 16
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 13
|
|
select * from t1 ;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1 ;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 16
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 16
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 15
|
|
-----------------------------------------------------
|
|
select * from t1
|
|
/* comment in the end */
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 16
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 16
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 15
|
|
select * from t1
|
|
/* comment in the end */;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1
|
|
/* comment in the end */;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 17
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 17
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 16
|
|
-----------------------------------------------------
|
|
select * from t1
|
|
/* *\/ */
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 17
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 17
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 16
|
|
select * from t1
|
|
/* *\/ */;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1
|
|
/* *\/ */;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 18
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 18
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 17
|
|
-----------------------------------------------------
|
|
select * from t1
|
|
/* comment in the end */
|
|
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 18
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 18
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 17
|
|
select * from t1
|
|
/* comment in the end */
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1
|
|
/* comment in the end */
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 18
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 18
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 19
|
|
-----------------------------------------------------
|
|
select * from t1 #comment in the end
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 18
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 18
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 19
|
|
select * from t1 #comment in the end;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1 #comment in the end;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 19
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 19
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 20
|
|
-----------------------------------------------------
|
|
select * from t1 #comment in the end
|
|
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 19
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 19
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 20
|
|
select * from t1 #comment in the end
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1 #comment in the end
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 19
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 19
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 22
|
|
-----------------------------------------------------
|
|
select * from t1 -- comment in the end
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 19
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 19
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 22
|
|
select * from t1 -- comment in the end;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1 -- comment in the end;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 20
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 20
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 23
|
|
-----------------------------------------------------
|
|
select * from t1 -- comment in the end
|
|
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 20
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 20
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 23
|
|
select * from t1 -- comment in the end
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select * from t1 -- comment in the end
|
|
;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 20
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 20
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 25
|
|
-----------------------------------------------------
|
|
select */* a comment \*/from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 20
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 20
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 25
|
|
select */* a comment \*/from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select */* a comment \*/from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 21
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 21
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 26
|
|
-----------------------------------------------------
|
|
select *# a comment \
|
|
from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 21
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 21
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 26
|
|
select *# a comment \
|
|
from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select *# a comment \
|
|
from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 22
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 22
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 27
|
|
-----------------------------------------------------
|
|
select *-- a comment \
|
|
from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 22
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 22
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 27
|
|
select *-- a comment \
|
|
from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select *-- a comment \
|
|
from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 23
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 23
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 28
|
|
-----------------------------------------------------
|
|
select "\\"" /* not a comment */" from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 23
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 23
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 28
|
|
select "\\"" /* not a comment */" from t1;
|
|
\" /* not a comment */
|
|
\" /* not a comment */
|
|
\" /* not a comment */
|
|
\" /* not a comment */
|
|
select "\\"" /* not a comment */" from t1;
|
|
\" /* not a comment */
|
|
\" /* not a comment */
|
|
\" /* not a comment */
|
|
\" /* not a comment */
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 24
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 24
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 29
|
|
-----------------------------------------------------
|
|
select "\\"" /*! not a comment */" from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 24
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 24
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 29
|
|
select "\\"" /*! not a comment */" from t1;
|
|
\" /*! not a comment */
|
|
\" /*! not a comment */
|
|
\" /*! not a comment */
|
|
\" /*! not a comment */
|
|
select "\\"" /*! not a comment */" from t1;
|
|
\" /*! not a comment */
|
|
\" /*! not a comment */
|
|
\" /*! not a comment */
|
|
\" /*! not a comment */
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 25
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 25
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 30
|
|
-----------------------------------------------------
|
|
select ' \' ' from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 25
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 25
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 30
|
|
select ' \' ' from t1;
|
|
'
|
|
'
|
|
'
|
|
'
|
|
select ' \' ' from t1;
|
|
'
|
|
'
|
|
'
|
|
'
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 26
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 26
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 31
|
|
-----------------------------------------------------
|
|
select ' \' /* comment inside quotes with internal backslash quote */' from t1
|
|
-----------------------------------------------------
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 26
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 26
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 31
|
|
select ' \' /* comment inside quotes with internal backslash quote */' from t1;
|
|
' /* comment inside quotes with internal backslash quote */
|
|
' /* comment inside quotes with internal backslash quote */
|
|
' /* comment inside quotes with internal backslash quote */
|
|
' /* comment inside quotes with internal backslash quote */
|
|
select ' \' /* comment inside quotes with internal backslash quote */' from t1;
|
|
' /* comment inside quotes with internal backslash quote */
|
|
' /* comment inside quotes with internal backslash quote */
|
|
' /* comment inside quotes with internal backslash quote */
|
|
' /* comment inside quotes with internal backslash quote */
|
|
show status like "Qcache_queries_in_cache";
|
|
Variable_name Value
|
|
Qcache_queries_in_cache 27
|
|
show status like "Qcache_inserts";
|
|
Variable_name Value
|
|
Qcache_inserts 27
|
|
show status like "Qcache_hits";
|
|
Variable_name Value
|
|
Qcache_hits 32
|
|
DROP TABLE t1;
|
|
SET GLOBAL query_cache_size=default;
|
|
set global query_cache_strip_comments=OFF;
|