File: idx_events_statements_current.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (40 lines) | stat: -rw-r--r-- 1,222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Tests for PERFORMANCE_SCHEMA

#setup
let $select_column = END_EVENT_ID;
let $table = performance_schema.events_statements_current;

select connection_id() into @conid;

let $tid = `select thread_id from performance_schema.threads
            where PROCESSLIST_ID = @conid`;

truncate table performance_schema.events_statements_current;
truncate table performance_schema.events_statements_history;

select 1;

# Connection 1
connect(con1,127.0.0.1,root,,);

--echo # Connection 1
--connection con1

--disable_query_log
--eval select $tid into @tid_default;
--let $wait_condition = select count(*) > 0 from performance_schema.events_statements_current where THREAD_ID = @tid_default
--source include/wait_condition.inc
select EVENT_ID from performance_schema.events_statements_current where THREAD_ID = @tid_default limit 1 into @eid_default;
--enable_query_log

###########################################################################
# Test index on THREAD_ID, EVENT_ID
###########################################################################

let $column_count = 2;
let $col1 = THREAD_ID;
let $col2 = EVENT_ID;
let $col1_act = @tid_default;
let $col2_act = @eid_default;

--source ../include/idx_explain_test.inc