after review fix

mysql-test/t/subselect.test:
  ufter merge fix
This commit is contained in:
unknown 2003-11-02 16:56:39 +02:00
parent 94f4aebcdd
commit 75139c2bc1
2 changed files with 8 additions and 2 deletions

View File

@ -999,4 +999,3 @@ select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
-- error 1109 -- error 1109
select count(*) from t2 group by t1.s2; select count(*) from t2 group by t1.s2;
drop table t1, t2; drop table t1, t2;

View File

@ -872,13 +872,16 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
else if (tmp == not_found_field && refer == (Item **)not_found_item) else if (tmp == not_found_field && refer == (Item **)not_found_item)
{ {
if (upward_lookup) if (upward_lookup)
{
// We can't say exactly what absend table or field // We can't say exactly what absend table or field
my_printf_error(ER_BAD_FIELD_ERROR, ER(ER_BAD_FIELD_ERROR), MYF(0), my_printf_error(ER_BAD_FIELD_ERROR, ER(ER_BAD_FIELD_ERROR), MYF(0),
full_name(), thd->where); full_name(), thd->where);
}
else else
{
// Call to report error // Call to report error
find_field_in_tables(thd, this, tables, &where, 1); find_field_in_tables(thd, this, tables, &where, 1);
}
return -1; return -1;
} }
else if (refer != (Item **)not_found_item) else if (refer != (Item **)not_found_item)
@ -1468,15 +1471,19 @@ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables, Item **reference)
else if (ref == (Item **)not_found_item && tmp == not_found_field) else if (ref == (Item **)not_found_item && tmp == not_found_field)
{ {
if (upward_lookup) if (upward_lookup)
{
// We can't say exactly what absend (table or field) // We can't say exactly what absend (table or field)
my_printf_error(ER_BAD_FIELD_ERROR, ER(ER_BAD_FIELD_ERROR), MYF(0), my_printf_error(ER_BAD_FIELD_ERROR, ER(ER_BAD_FIELD_ERROR), MYF(0),
full_name(), thd->where); full_name(), thd->where);
}
else else
{
// Call to report error // Call to report error
find_item_in_list(this, find_item_in_list(this,
*(thd->lex.current_select->get_item_list()), *(thd->lex.current_select->get_item_list()),
&counter, &counter,
REPORT_ALL_ERRORS); REPORT_ALL_ERRORS);
}
ref= 0; ref= 0;
return 1; return 1;
} }