summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index 085e54dbc90..aa9f3fedd6d 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -611,8 +611,7 @@ int send_variant_2_list(MEM_ROOT *mem_root, Protocol *protocol,
SQL_SELECT *prepare_simple_select(THD *thd, Item *cond,
TABLE *table, int *error)
{
- if (!cond->fixed)
- cond->fix_fields(thd, &cond); // can never fail
+ cond->fix_fields_if_needed(thd, &cond); // can never fail
/* Assume that no indexes cover all required fields */
table->covering_keys.clear_all();