Debian Codegraph @

mysql-test/suite/perfschema/t/dml_prepared_statements_instances.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 --source include/not_embedded.inc
7 --source include/have_perfschema.inc
8
9 #--disable_result_log
10 select * from performance_schema.prepared_statements_instances
11 where owner_object_name like 'XXYYZZ%' limit 1;
12
13 select * from performance_schema.prepared_statements_instances
14 where owner_object_name='XXYYZZ';
15 #--enable_result_log
16
17 --error ER_TABLEACCESS_DENIED_ERROR
18 insert into performance_schema.prepared_statements_instances
19 set owner_object_name='XXYYZZ', count_execute=1, sum_timer_execute=2,
20 min_timer_execute=3, avg_timer_execute=4, max_timer_execute=5;
21
22 --error ER_TABLEACCESS_DENIED_ERROR
23 update performance_schema.prepared_statements_instances set count_execute=12;
24
25 --error ER_TABLEACCESS_DENIED_ERROR
26 update performance_schema.prepared_statements_instances
27 set count_execute=12 where owner_object_name like "XXYYZZ";
28
29 --error ER_TABLEACCESS_DENIED_ERROR
30 delete from performance_schema.prepared_statements_instances
31 where count_execute=1;
32
33 --error ER_TABLEACCESS_DENIED_ERROR
34 delete from performance_schema.prepared_statements_instances;
35
36 -- error ER_TABLEACCESS_DENIED_ERROR
37 LOCK TABLES performance_schema.prepared_statements_instances READ;
38 UNLOCK TABLES;
39
40 -- error ER_TABLEACCESS_DENIED_ERROR
41 LOCK TABLES performance_schema.prepared_statements_instances WRITE;
42 UNLOCK TABLES;
43