MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
print_greedy_search_count.inc
1 # include/print_greedy_search_count.inc
2 #
3 # SUMMARY
4 #
5 # $query should be assigned a select statement.
6 # The query will be EXPLAINed and the number of
7 # partial plans greedy search went through to
8 # create the QEP is printed.
9 #
10 # USAGE
11 #
12 # let $query= <query>;
13 # --source include/print_greedy_search_count.inc
14 #
15 # EXAMPLE
16 # t/greedy_search.test
17 #
18 
19 eval EXPLAIN $query;
20 
21 let $greedy_search_partial_plans=
22  query_get_value(SHOW STATUS LIKE 'Last_query_partial_plans', Value, 1);
23 
24 --echo ### Partial_plans: $greedy_search_partial_plans
25 FLUSH STATUS;