From db8ab4aca27de0c02b9e4b4f367d23c2d6c27c03 Mon Sep 17 00:00:00 2001 From: Monty Date: Mon, 19 Aug 2024 11:14:11 +0300 Subject: [PATCH] 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. --- mysql-test/main/subselect.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysql-test/main/subselect.test b/mysql-test/main/subselect.test index d010f01be56..3f01e984125 100644 --- a/mysql-test/main/subselect.test +++ b/mysql-test/main/subselect.test @@ -5932,7 +5932,9 @@ WHERE SLEEP(0.1) OR c < 'p' OR b = ( SELECT MIN(b) FROM t2 ); --enable_ps2_protocol --echo # The following shows that t2 was indeed scanned with a full scan. +--sorted_result show table_statistics; +--sorted_result show index_statistics; set global userstat=@tmp_mdev410;