31 lines
952 B
Plaintext
31 lines
952 B
Plaintext
# Tests for PERFORMANCE_SCHEMA
|
|
|
|
#setup
|
|
let $select_column = COUNT_STAR;
|
|
let $table = performance_schema.events_waits_summary_by_instance;
|
|
|
|
select OBJECT_INSTANCE_BEGIN from performance_schema.events_waits_summary_by_instance limit 1
|
|
into @oib;
|
|
select EVENT_NAME from performance_schema.events_waits_summary_by_instance limit 1
|
|
into @ename;
|
|
|
|
###########################################################################
|
|
# Test index on OBJECT_INSTANCE_BEGIN
|
|
###########################################################################
|
|
|
|
let $column_count = 1;
|
|
let $col1 = OBJECT_INSTANCE_BEGIN;
|
|
let $col1_act = @oib;
|
|
|
|
--source ../include/idx_explain_test.inc
|
|
|
|
###########################################################################
|
|
# Test index on EVENT_NAME
|
|
###########################################################################
|
|
|
|
let $column_count = 1;
|
|
let $col1 = EVENT_NAME;
|
|
let $col1_act = @ename;
|
|
|
|
--source ../include/idx_explain_test.inc
|