summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-04-15 20:43:45 -0700
committerunknown <igor@rurik.mysql.com>2005-04-15 20:43:45 -0700
commit2b92a78eb8b0c1874f5894c90eebdf1a6c8842f2 (patch)
treed057d8944a2cf508a55b6bd6ec124cb762f2c36e /sql/item.h
parent1c2c6bba1ca34dee39eac2e2596150600285af16 (diff)
downloadmariadb-git-2b92a78eb8b0c1874f5894c90eebdf1a6c8842f2.tar.gz
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. sql/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. sql/item.cc: 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. sql/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. mysql-test/t/subselect.test: Added a test case for bug #9338. mysql-test/r/subselect.result: Added a test case for bug #9338.
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index f4ca292e574..33c7a164c5b 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -520,7 +520,7 @@ public:
virtual bool collect_item_field_processor(byte * arg) { return 0; }
virtual Item *equal_fields_propagator(byte * arg) { return this; }
virtual Item *set_no_const_sub(byte *arg) { return this; }
- virtual bool replace_equal_field_processor(byte * arg) { return 0; }
+ virtual Item *replace_equal_field(byte * arg) { return this; }
virtual Item *this_item() { return this; } /* For SPs mostly. */
virtual Item *this_const_item() const { return const_cast<Item*>(this); } /* For SPs mostly. */
@@ -750,7 +750,7 @@ public:
Item_equal *find_item_equal(COND_EQUAL *cond_equal);
Item *equal_fields_propagator(byte *arg);
Item *set_no_const_sub(byte *arg);
- bool replace_equal_field_processor(byte *arg);
+ Item *replace_equal_field(byte *arg);
inline uint32 max_disp_length() { return field->max_length(); }
Item_field *filed_for_view_update() { return this; }
Item *safe_charset_converter(CHARSET_INFO *tocs);