Debian Codegraph @

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

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 --source include/not_embedded.inc
4 --source include/have_perfschema.inc
5
6 --disable_result_log
7 select * from performance_schema.events_transactions_history_long
8 where event_name in ('transaction') limit 1;
9
10 select * from performance_schema.events_transactions_history_long
11 where event_name='FOO';
12
13 select * from performance_schema.events_transactions_history_long
14 where event_name in ('transaction') order by timer_wait limit 1;
15
16 select * from performance_schema.events_transactions_history_long
17 where event_name in ('transaction') order by timer_wait desc limit 1;
18 --enable_result_log
19
20 --error ER_TABLEACCESS_DENIED_ERROR
21 insert into performance_schema.events_transactions_history_long
22 set thread_id='1', event_id=1,
23 event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
24
25 --error ER_TABLEACCESS_DENIED_ERROR
26 update performance_schema.events_transactions_history_long
27 set timer_start=12;
28
29 --error ER_TABLEACCESS_DENIED_ERROR
30 update performance_schema.events_transactions_history_long
31 set timer_start=12 where thread_id=0;
32
33 --error ER_TABLEACCESS_DENIED_ERROR
34 delete from performance_schema.events_transactions_history_long
35 where thread_id=1;
36
37 --error ER_TABLEACCESS_DENIED_ERROR
38 delete from performance_schema.events_transactions_history_long;
39
40 -- error ER_TABLEACCESS_DENIED_ERROR
41 LOCK TABLES performance_schema.events_transactions_history_long READ;
42 UNLOCK TABLES;
43
44 -- error ER_TABLEACCESS_DENIED_ERROR
45 LOCK TABLES performance_schema.events_transactions_history_long WRITE;
46 UNLOCK TABLES;
47