summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index e1c28dd0e4d..199693df7d6 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -91,6 +91,7 @@ int mysql_update(THD *thd,
bzero((char*) &tables,sizeof(tables)); // For ORDER BY
tables.table= table;
+ tables.alias= table_list->alias;
if (setup_tables(update_table_list) ||
setup_conds(thd,update_table_list,&conds) ||