Debian Codegraph @

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

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 #setup
4 let $select_column = END_EVENT_ID;
5 let $table = performance_schema.events_statements_history;
6
7 select connection_id() into @conid;
8
9 let $tid = `select thread_id from performance_schema.threads
10 where PROCESSLIST_ID = @conid`;
11
12 truncate table performance_schema.events_statements_history;
13
14 select 1;
15
16 # Connection 1
17 connect(con1,127.0.0.1,root,,);
18
19 --disable_query_log
20 --eval select $tid into @tid_default;
21 --let $wait_condition = select count(*) > 0 from performance_schema.events_statements_history where THREAD_ID = @tid_default
22 --source include/wait_condition.inc
23 select EVENT_ID from performance_schema.events_statements_history where THREAD_ID = @tid_default limit 1 into @eid_default;
24 --enable_query_log
25
26 ###########################################################################
27 # Test index on THREAD_ID, EVENT_ID
28 ###########################################################################
29
30 let $column_count = 2;
31 let $col1 = THREAD_ID;
32 let $col2 = EVENT_ID;
33 let $col1_act = @tid_default;
34 let $col2_act = @eid_default;
35
36 --source ../include/idx_explain_test.inc