Debian Codegraph @

mysql-test/suite/perfschema/include/idx_explain_error_log.inc

raw
1 ###########################################################################
2 # $select_column : Column to be fetched in SELECT #
3 # $column_count : Number of columns in the Index #
4 # $col1, $col2 ... : Columns' name in the Index #
5 # $col1_act, $col2_act ... : Actual existing values of columns in table #
6 # $table : Performance Schema table name #
7 ###########################################################################
8
9 --echo
10
11 --echo ====================================================================
12 --echo Testing index for columns $col1
13 --echo ====================================================================
14 --disable_warnings
15
16 --echo ############ Explain for Query ####################################
17 --replace_column 10 #
18 eval EXPLAIN SELECT $select_column
19 FROM $table
20 WHERE $col1 = $col1_act;
21
22 --echo ############ Explain for Query ####################################
23 --replace_column 10 #
24 eval EXPLAIN SELECT $select_column
25 FROM $table
26 WHERE $col1 > $col1_act;
27
28 --echo ############ Explain for Query ####################################
29 --replace_column 10 #
30 eval EXPLAIN SELECT $select_column
31 FROM $table
32 WHERE $col1 < $col1_act;
33
34 --echo ############ Explain for Query ####################################
35 --replace_column 10 #
36 eval EXPLAIN SELECT $select_column
37 FROM $table
38 WHERE $col1 != $col1_act;
39
40 --echo ############# Explain End #########################################
41 --enable_warnings