Debian Codegraph @

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

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 --source include/not_embedded.inc
4 --source include/have_perfschema.inc
5
6 --disable_result_log
7 select * from performance_schema.accounts
8 limit 1;
9
10 select * from performance_schema.accounts
11 where user='FOO' or host='BAR';
12 --enable_result_log
13
14 --error ER_TABLEACCESS_DENIED_ERROR
15 insert into performance_schema.accounts
16 set user='FOO', host='BAR',
17 current_connections=1, total_connections=2;
18
19 --error ER_TABLEACCESS_DENIED_ERROR
20 update performance_schema.accounts
21 set current_connections=12;
22
23 --error ER_TABLEACCESS_DENIED_ERROR
24 update performance_schema.accounts
25 set current_connections=12 where host like "FOO";
26
27 --error ER_TABLEACCESS_DENIED_ERROR
28 delete from performance_schema.accounts
29 where total_connections=1;
30
31 --error ER_TABLEACCESS_DENIED_ERROR
32 delete from performance_schema.accounts;
33
34 -- error ER_TABLEACCESS_DENIED_ERROR
35 LOCK TABLES performance_schema.accounts READ;
36 UNLOCK TABLES;
37
38 -- error ER_TABLEACCESS_DENIED_ERROR
39 LOCK TABLES performance_schema.accounts WRITE;
40 UNLOCK TABLES;
41
42 --echo #
43 --echo # MDEV-25325 column_comment for performance_schema tables
44 --echo #
45 select column_name, column_comment
46 from information_schema.columns
47 where table_schema='performance_schema' and table_name='accounts';