mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
More after-merge fixes for patch fixing bug #2050
This commit is contained in:
parent
e6d7661547
commit
dead63012a
1 changed files with 6 additions and 2 deletions
|
@ -2337,10 +2337,12 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
|
|||
|
||||
while ((field = *ptr++))
|
||||
{
|
||||
uint not_used_field_index= NO_CACHED_FIELD_INDEX;
|
||||
/* Skip duplicate field names if NATURAL JOIN is used */
|
||||
if (!natural_join_table ||
|
||||
!find_field_in_table(thd, natural_join_table, field->field_name,
|
||||
strlen(field->field_name), 0, 0))
|
||||
strlen(field->field_name), 0, 0,
|
||||
¬_used_field_index))
|
||||
{
|
||||
Item_field *item= new Item_field(thd, field);
|
||||
if (!found++)
|
||||
|
@ -2434,9 +2436,11 @@ int setup_conds(THD *thd,TABLE_LIST *tables,COND **conds)
|
|||
for (t1_field= t1->field; (*t1_field); t1_field++)
|
||||
{
|
||||
const char *t1_field_name= (*t1_field)->field_name;
|
||||
uint not_used_field_index= NO_CACHED_FIELD_INDEX;
|
||||
|
||||
if ((t2_field= find_field_in_table(thd, t2, t1_field_name,
|
||||
strlen(t1_field_name), 0, 0)))
|
||||
strlen(t1_field_name), 0, 0,
|
||||
¬_used_field_index)))
|
||||
{
|
||||
Item_func_eq *tmp=new Item_func_eq(new Item_field(*t1_field),
|
||||
new Item_field(t2_field));
|
||||
|
|
Loading…
Reference in a new issue