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.
This commit is contained in:
parent
052d0426f4
commit
e392f406f5
@ -854,7 +854,6 @@ bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list,
|
|||||||
{
|
{
|
||||||
Item *fake_conds= 0;
|
Item *fake_conds= 0;
|
||||||
TABLE *table= table_list->table;
|
TABLE *table= table_list->table;
|
||||||
TABLE_LIST tables;
|
|
||||||
List<Item> all_fields;
|
List<Item> all_fields;
|
||||||
SELECT_LEX *select_lex= &thd->lex->select_lex;
|
SELECT_LEX *select_lex= &thd->lex->select_lex;
|
||||||
DBUG_ENTER("mysql_prepare_update");
|
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);
|
table_list->register_want_access(SELECT_ACL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bzero((char*) &tables,sizeof(tables)); // For ORDER BY
|
|
||||||
tables.table= table;
|
|
||||||
tables.alias= table_list->alias;
|
|
||||||
thd->lex->allow_sum_func= 0;
|
thd->lex->allow_sum_func= 0;
|
||||||
|
|
||||||
if (setup_tables_and_check_access(thd, &select_lex->context,
|
if (setup_tables_and_check_access(thd, &select_lex->context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user