summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 6679334552b..783c655d007 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -1938,7 +1938,7 @@ bool check_key_in_view(THD *thd, TABLE_LIST *view)
DBUG_PRINT("info", ("thd->column_usage: %d", thd->column_usage));
for (Field_translator *fld= trans; fld < end_of_trans; fld++)
{
- if (!fld->item->fixed && fld->item->fix_fields(thd, &fld->item))
+ if (fld->item->fix_fields_if_needed(thd, &fld->item))
{
thd->column_usage= saved_column_usage;
DBUG_RETURN(TRUE);