| 1 |
# Tests for PERFORMANCE_SCHEMA |
| 2 |
|
| 3 |
--disable_result_log |
| 4 |
select * from performance_schema.events_statements_current |
| 5 |
where event_name like 'statement/%' limit 1; |
| 6 |
|
| 7 |
select * from performance_schema.events_statements_current |
| 8 |
where event_name='FOO'; |
| 9 |
--enable_result_log |
| 10 |
|
| 11 |
--error ER_TABLEACCESS_DENIED_ERROR |
| 12 |
insert into performance_schema.events_statements_current |
| 13 |
set thread_id='1', event_id=1, |
| 14 |
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; |
| 15 |
|
| 16 |
--error ER_TABLEACCESS_DENIED_ERROR |
| 17 |
update performance_schema.events_statements_current |
| 18 |
set timer_start=12; |
| 19 |
|
| 20 |
--error ER_TABLEACCESS_DENIED_ERROR |
| 21 |
update performance_schema.events_statements_current |
| 22 |
set timer_start=12 where thread_id=0; |
| 23 |
|
| 24 |
--error ER_TABLEACCESS_DENIED_ERROR |
| 25 |
delete from performance_schema.events_statements_current |
| 26 |
where thread_id=1; |
| 27 |
|
| 28 |
--error ER_TABLEACCESS_DENIED_ERROR |
| 29 |
delete from performance_schema.events_statements_current; |
| 30 |
|
| 31 |
-- error ER_TABLEACCESS_DENIED_ERROR |
| 32 |
LOCK TABLES performance_schema.events_statements_current READ; |
| 33 |
UNLOCK TABLES; |
| 34 |
|
| 35 |
-- error ER_TABLEACCESS_DENIED_ERROR |
| 36 |
LOCK TABLES performance_schema.events_statements_current WRITE; |
| 37 |
UNLOCK TABLES; |
| 38 |
|