Debian Codegraph @

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

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