diff options
Diffstat (limited to 'sql/sql_cte.cc')
-rw-r--r-- | sql/sql_cte.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cte.cc b/sql/sql_cte.cc index d9141d9a801..eb39cb94cef 100644 --- a/sql/sql_cte.cc +++ b/sql/sql_cte.cc @@ -972,7 +972,7 @@ With_element::rename_columns_of_derived_unit(THD *thd, /* Rename the columns of the first select in the unit */ while ((item= it++, name= nm++)) { - item->set_name(thd, name->str, (uint) name->length, system_charset_info); + item->set_name(thd, *name); item->is_autogenerated_name= false; } |