summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-06-19 22:06:51 +0500
committerunknown <hf@deer.(none)>2003-06-19 22:06:51 +0500
commit31815f3ad31c88dc0cb20ee792ced4b8dd72092f (patch)
tree4a6406d07e1084c26f5e295b74f30242ea490859 /sql/sql_update.cc
parent332334e837331cecb5344e3cbd2c91dc3d0cbca9 (diff)
downloadmariadb-git-31815f3ad31c88dc0cb20ee792ced4b8dd72092f.tar.gz
Bug #570 fixed
sql/sql_update.cc: field_list_in_tables needs TABLE_LIST::alias to be initialized
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index b4e7750addf..3179c8e0f24 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -86,7 +86,8 @@ int mysql_update(THD *thd,
table->grant.want_privilege=(SELECT_ACL & ~table->grant.privilege);
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) ||
setup_order(thd, &tables, all_fields, all_fields, order) ||