1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

subselect.result, subselect.test:

Added a test case for bug #9338.
sql_select.cc:
  Fixed bug #9338.
  When an occurence of a field reference has to be replaced
  by another field reference the whole Item_field must be
  replaced.
item.cc:
  Fixed bug #9338.
  The method Item_field::replace_equal_field_processor was
  replaced by Item_field::replace_equal_field. The new method
  is used to replace the occurences of Item_field objects.
item.h:
  Fixed bug #9338.
  The virtual function replace_equal_field_processor was replaced
  by replace_equal_field. The latter is supposed to be used as a
  callback function in calls of the method transform.
This commit is contained in:
igor@rurik.mysql.com
2005-04-15 20:43:45 -07:00
parent c9ad5e7673
commit 0f043429e4
5 changed files with 53 additions and 19 deletions

View File

@ -7050,7 +7050,7 @@ static COND* substitute_for_best_equal_field(COND *cond,
return eliminate_item_equal(0, cond_equal, item_equal);
}
else
cond->walk(&Item::replace_equal_field_processor, 0);
cond->transform(&Item::replace_equal_field, 0);
return cond;
}