1
# Tests for PERFORMANCE_SCHEMA
3
--source include/not_embedded.inc
4
--source include/have_perfschema.inc
7
select * from performance_schema.events_waits_current
8
where event_name like 'Wait/Synch/%' limit 1;
10
select * from performance_schema.events_waits_current
11
where event_name='FOO';
14
--error ER_TABLEACCESS_DENIED_ERROR
15
insert into performance_schema.events_waits_current
16
set thread_id='1', event_id=1,
17
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
19
--error ER_TABLEACCESS_DENIED_ERROR
20
update performance_schema.events_waits_current
23
--error ER_TABLEACCESS_DENIED_ERROR
24
update performance_schema.events_waits_current
25
set timer_start=12 where thread_id=0;
27
--error ER_TABLEACCESS_DENIED_ERROR
28
delete from performance_schema.events_waits_current
31
--error ER_TABLEACCESS_DENIED_ERROR
32
delete from performance_schema.events_waits_current;
34
-- error ER_TABLEACCESS_DENIED_ERROR
35
LOCK TABLES performance_schema.events_waits_current READ;
38
-- error ER_TABLEACCESS_DENIED_ERROR
39
LOCK TABLES performance_schema.events_waits_current WRITE;