mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fix for table/field caching mechanism
save moving ON/USING tables conditions to WHERE clause (BUG#2794)
This commit is contained in:
@ -84,9 +84,14 @@ check_insert_fields(THD *thd,TABLE *table,List<Item> &fields,
|
||||
table_list.grant=table->grant;
|
||||
|
||||
thd->dupp_field=0;
|
||||
thd->no_table_fix_fields_cache= 1;
|
||||
if (setup_tables(&table_list) ||
|
||||
setup_fields(thd, 0, &table_list,fields,1,0,0))
|
||||
{
|
||||
thd->no_table_fix_fields_cache= 0;
|
||||
return -1;
|
||||
}
|
||||
thd->no_table_fix_fields_cache= 0;
|
||||
if (thd->dupp_field)
|
||||
{
|
||||
my_error(ER_FIELD_SPECIFIED_TWICE,MYF(0), thd->dupp_field->field_name);
|
||||
|
Reference in New Issue
Block a user