From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/include/execute_with_statistics.inc | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 mysql-test/include/execute_with_statistics.inc (limited to 'mysql-test/include/execute_with_statistics.inc') diff --git a/mysql-test/include/execute_with_statistics.inc b/mysql-test/include/execute_with_statistics.inc new file mode 100644 index 00000000..c2305fe5 --- /dev/null +++ b/mysql-test/include/execute_with_statistics.inc @@ -0,0 +1,30 @@ +# include/execute_with_statistics.inc +# +# SUMMARY +# +# Explain and execute the select statment in $query. +# Then report 'Last_query_cost' estimate from the query +# optimizer and total number of 'Handler_read%' when the +# query was executed. +# Intended usage is to verify that there are not regressions +# in either calculated or actuall cost for $query. +# +# USAGE +# +# let $query=