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