Debian Codegraph @

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

raw
1 # This line and the line below is a temporary line for tests that do not need MyISAM in future, but need to be kept for tests that need it.
2 --source include/have_myisam.inc
3
4 # Tests for PERFORMANCE_SCHEMA
5
6 #--disable_result_log
7 select * from performance_schema.events_statements_summary_by_program
8 where object_name like 'XXYYZZ%' limit 1;
9
10 select * from performance_schema.events_statements_summary_by_program
11 where object_name='XXYYZZ';
12 #--enable_result_log
13
14 --error ER_TABLEACCESS_DENIED_ERROR
15 insert into performance_schema.events_statements_summary_by_program
16 set object_name='XXYYZZ', count_star=1, sum_timer_wait=2, min_timer_wait=3,
17 avg_timer_wait=4, max_timer_wait=5;
18
19 --error ER_TABLEACCESS_DENIED_ERROR
20 update performance_schema.events_statements_summary_by_program
21 set count_star=12;
22
23 --error ER_TABLEACCESS_DENIED_ERROR
24 update performance_schema.events_statements_summary_by_program
25 set count_star=12 where object_name like "XXYYZZ";
26
27 --error ER_TABLEACCESS_DENIED_ERROR
28 delete from performance_schema.events_statements_summary_by_program
29 where count_star=1;
30
31 --error ER_TABLEACCESS_DENIED_ERROR
32 delete from performance_schema.events_statements_summary_by_program;
33
34 -- error ER_TABLEACCESS_DENIED_ERROR
35 LOCK TABLES performance_schema.events_statements_summary_by_program READ;
36 UNLOCK TABLES;
37
38 -- error ER_TABLEACCESS_DENIED_ERROR
39 LOCK TABLES performance_schema.events_statements_summary_by_program WRITE;
40 UNLOCK TABLES;
41