Debian Codegraph @

mysql-test/suite/perfschema/t/dml_esmh_global.test

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 --disable_result_log
4 select * from performance_schema.events_statements_histogram_global
5 where bucket_number = 1000 limit 1;
6
7 select * from performance_schema.events_statements_histogram_global
8 where count_bucket=0;
9 --enable_result_log
10
11 --error ER_TABLEACCESS_DENIED_ERROR
12 insert into performance_schema.events_statements_histogram_global
13 set digest='XXYYZZ', count_star=1, sum_timer_wait=2, min_timer_wait=3,
14 avg_timer_wait=4, max_timer_wait=5;
15
16 --error ER_TABLEACCESS_DENIED_ERROR
17 update performance_schema.events_statements_histogram_global
18 set count_star=12;
19
20 --error ER_TABLEACCESS_DENIED_ERROR
21 update performance_schema.events_statements_histogram_global
22 set count_star=12 where digest like "XXYYZZ";
23
24 --error ER_TABLEACCESS_DENIED_ERROR
25 delete from performance_schema.events_statements_histogram_global
26 where count_star=1;
27
28 --error ER_TABLEACCESS_DENIED_ERROR
29 delete from performance_schema.events_statements_histogram_global;
30
31 -- error ER_TABLEACCESS_DENIED_ERROR
32 LOCK TABLES performance_schema.events_statements_histogram_global READ;
33 UNLOCK TABLES;
34
35 -- error ER_TABLEACCESS_DENIED_ERROR
36 LOCK TABLES performance_schema.events_statements_histogram_global WRITE;
37 UNLOCK TABLES;
38