Commit 73964382 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

removed incorrect destructor (to prevent deleting item by recursion instead of...

removed incorrect destructor (to prevent deleting item by recursion instead of by list scanning in case of chained OR or AND)
parent 4c838770
...@@ -534,7 +534,6 @@ public: ...@@ -534,7 +534,6 @@ public:
Item_cond() : Item_bool_func() { const_item_cache=0; } Item_cond() : Item_bool_func() { const_item_cache=0; }
Item_cond(Item *i1,Item *i2) :Item_bool_func() Item_cond(Item *i1,Item *i2) :Item_bool_func()
{ list.push_back(i1); list.push_back(i2); } { list.push_back(i1); list.push_back(i2); }
~Item_cond() { list.delete_elements(); }
bool add(Item *item) { return list.push_back(item); } bool add(Item *item) { return list.push_back(item); }
bool fix_fields(THD *,struct st_table_list *); bool fix_fields(THD *,struct st_table_list *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment