Debian Codegraph @

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

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