summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <thek@adventure.(none)>2008-04-01 14:41:13 +0200
committerunknown <thek@adventure.(none)>2008-04-01 14:41:13 +0200
commitf2d504aa648dece6fc4b08ed72e3639b749b8424 (patch)
treeefa4334128ccc97412bab200eb522afac260fda0 /sql/sql_update.cc
parent79f5fe21f3efb61494859592266e9ec2be8f1e40 (diff)
downloadmariadb-git-f2d504aa648dece6fc4b08ed72e3639b749b8424.tar.gz
Bug#26208 a typo (wrong variable name) in mysql_prepare_update function's source code?
This is a code clean up. Removed redundant (and unused) TABLE_LIST variable intended as an IN- parameter for setup_order. sql/sql_update.cc: Removed redundant (and unused) TABLE_LIST variable intended as an IN- parameter for setup_order.
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 23ad5ce9385..fe34301cda0 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -854,7 +854,6 @@ bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list,
{
Item *fake_conds= 0;
TABLE *table= table_list->table;
- TABLE_LIST tables;
List<Item> all_fields;
SELECT_LEX *select_lex= &thd->lex->select_lex;
DBUG_ENTER("mysql_prepare_update");
@@ -878,9 +877,6 @@ bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list,
table_list->register_want_access(SELECT_ACL);
#endif
- bzero((char*) &tables,sizeof(tables)); // For ORDER BY
- tables.table= table;
- tables.alias= table_list->alias;
thd->lex->allow_sum_func= 0;
if (setup_tables_and_check_access(thd, &select_lex->context,