Commit 31815f3a authored by unknown's avatar unknown

Bug #570 fixed


sql/sql_update.cc:
  field_list_in_tables needs TABLE_LIST::alias to be initialized
parent 332334e8
...@@ -86,7 +86,8 @@ int mysql_update(THD *thd, ...@@ -86,7 +86,8 @@ int mysql_update(THD *thd,
table->grant.want_privilege=(SELECT_ACL & ~table->grant.privilege); table->grant.want_privilege=(SELECT_ACL & ~table->grant.privilege);
bzero((char*) &tables,sizeof(tables)); // For ORDER BY bzero((char*) &tables,sizeof(tables)); // For ORDER BY
tables.table = table; tables.table= table;
tables.alias= table_list->alias;
if (setup_tables(table_list) || setup_conds(thd,table_list,&conds) || if (setup_tables(table_list) || setup_conds(thd,table_list,&conds) ||
setup_order(thd, &tables, all_fields, all_fields, order) || setup_order(thd, &tables, all_fields, all_fields, order) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment