| 1 |
# |
| 2 |
# Verify that query results are the same with and without indexes. |
| 3 |
# |
| 4 |
--source include/have_debug_sync.inc |
| 5 |
|
| 6 |
let $table = "file_summary_by_instance"; |
| 7 |
let $target_name = wait/io/file/sql/ERRMSG; |
| 8 |
|
| 9 |
--echo TABLE: $table |
| 10 |
--echo INDEXES: PK (OBJECT_INSTANCE_BEGIN), KEY (FILE_NAME), KEY (EVENT_NAME) |
| 11 |
|
| 12 |
--source ../include/idx_compare_setup.inc |
| 13 |
|
| 14 |
--disable_query_log |
| 15 |
# Get an object_instance_begin and file name |
| 16 |
eval SELECT object_instance_begin, file_name INTO @object_instance_begin, @file_name |
| 17 |
FROM performance_schema.file_summary_by_instance |
| 18 |
WHERE event_name = '$target_name' LIMIT 1; |
| 19 |
--enable_query_log |
| 20 |
|
| 21 |
--echo |
| 22 |
--echo ## Test OBJECT_INSTANCE_BEGIN |
| 23 |
let $key_group = 12; |
| 24 |
--source ../include/idx_compare_load.inc |
| 25 |
|
| 26 |
--echo |
| 27 |
--echo ## Test EVENT_NAME |
| 28 |
let $key_group = 13; |
| 29 |
let $name_column = EVENT_NAME; |
| 30 |
let $target_name = wait/io/file/sql/ERRMSG; |
| 31 |
|
| 32 |
--source ../include/idx_compare_load.inc |
| 33 |
|
| 34 |
--echo |
| 35 |
--echo ## Test FILE_NAME |
| 36 |
let $key_group = 13.1; |
| 37 |
let $name_column = FILE_NAME; |
| 38 |
SET @target_name = @file_name; |
| 39 |
|
| 40 |
--source ../include/idx_compare_load.inc |
| 41 |
|
| 42 |
--source ../include/idx_compare_cleanup.inc |