summaryrefslogtreecommitdiff
path: root/sql/opt_trace.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2021-03-19 17:32:08 +0300
committerSergei Petrunia <psergey@askmonty.org>2021-03-19 17:37:38 +0300
commitb9a45ba40fbf251f5635ecebad6ea7414be39d41 (patch)
tree465a1936ddced015b9a3f327a0e27b792e16f929 /sql/opt_trace.h
parent00528a04457d33210baceba1a79e82ea126b48bd (diff)
downloadmariadb-git-b9a45ba40fbf251f5635ecebad6ea7414be39d41.tar.gz
MDEV-23645: Optimizer trace: print conditions after substitute_for_best_equal_field
Print the conditions for WHERE, HAVING, and ON.
Diffstat (limited to 'sql/opt_trace.h')
-rw-r--r--sql/opt_trace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/opt_trace.h b/sql/opt_trace.h
index 550f18c0797..101fb5f707e 100644
--- a/sql/opt_trace.h
+++ b/sql/opt_trace.h
@@ -108,6 +108,10 @@ void print_final_join_order(JOIN *join);
void print_best_access_for_table(THD *thd, POSITION *pos,
enum join_type type);
+void trace_condition(THD * thd, const char *name, const char *transform_type,
+ Item *item, const char *table_name= nullptr);
+
+
/*
Security related (need to add a proper comment here)
*/