Skip to content

Commit db8ab4a

Browse files
committed
Sort result from table_statistics and index_statistics
This is needed as the order of rows are not deterministic, especially in future versions of table statistics.
1 parent e51d55a commit db8ab4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mysql-test/main/subselect.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5932,7 +5932,9 @@ WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 );
59325932
--enable_ps2_protocol
59335933

59345934
--echo # The following shows that t2 was indeed scanned with a full scan.
5935+
--sorted_result
59355936
show table_statistics;
5937+
--sorted_result
59365938
show index_statistics;
59375939
set global userstat=@tmp_mdev410;
59385940

0 commit comments

Comments
 (0)