Skip to content

Commit 2b89bf7

Browse files
committed
make main.desc_index_min_max more stable
InnoDB row format estimations are approximate, cannot be part of the result file
1 parent 57dd23d commit 2b89bf7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

mysql-test/main/desc_index_min_max.result

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ min(a)
113113
2
114114
explain select max(200 - a) from t1;
115115
id select_type table type possible_keys key key_len ref rows Extra
116-
1 SIMPLE t1 index NULL a 5 NULL 100 Using index
116+
1 SIMPLE t1 index NULL a 5 NULL # Using index
117117
select max(200 - a) from t1;
118118
max(200 - a)
119119
198
120120
explain select min(200 - a) from t1;
121121
id select_type table type possible_keys key key_len ref rows Extra
122-
1 SIMPLE t1 index NULL a 5 NULL 100 Using index
122+
1 SIMPLE t1 index NULL a 5 NULL # Using index
123123
select min(200 - a) from t1;
124124
min(200 - a)
125125
0
@@ -174,6 +174,4 @@ SELECT MAX(a) FROM t1 WHERE a <= 0.6789;
174174
MAX(a)
175175
0.6789
176176
drop table t1;
177-
#
178177
# end of test 11.4
179-
#

mysql-test/main/desc_index_min_max.test

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ eval $query;
102102
# double reversion
103103
let $query=
104104
select max(200 - a) from t1;
105-
replace_result 101 100;
105+
replace_column 9 #;
106106
eval explain $query;
107107
eval $query;
108108

109109
let $query=
110110
select min(200 - a) from t1;
111-
replace_result 101 100;
111+
replace_column 9 #;
112112
eval explain $query;
113113
eval $query;
114114

@@ -162,6 +162,5 @@ eval $query;
162162

163163
# Cleanup
164164
drop table t1;
165-
--echo #
165+
166166
--echo # end of test 11.4
167-
--echo #

0 commit comments

Comments
 (0)