Moving Item_bool_func::add_key_fields_optimize_op() to Item_bool_func2.

It's now needed outside of Item_bool_func2 any more.
This commit is contained in:
Alexander Barkov 2015-06-28 18:23:15 +04:00
commit 4d4f2ed2e1
2 changed files with 9 additions and 9 deletions

View file

@ -122,10 +122,6 @@ public:
class Item_bool_func :public Item_int_func
{
protected:
void add_key_fields_optimize_op(JOIN *join, KEY_FIELD **key_fields,
uint *and_level, table_map usable_tables,
SARGABLE_PARAM **sargables, bool equal_func);
public:
Item_bool_func() :Item_int_func() {}
Item_bool_func(Item *a) :Item_int_func(a) {}
@ -291,6 +287,10 @@ public:
class Item_bool_func2 :public Item_bool_func
{ /* Bool with 2 string args */
bool have_rev_func() const { return rev_functype() != UNKNOWN_FUNC; }
protected:
void add_key_fields_optimize_op(JOIN *join, KEY_FIELD **key_fields,
uint *and_level, table_map usable_tables,
SARGABLE_PARAM **sargables, bool equal_func);
public:
Item_bool_func2(Item *a,Item *b)
:Item_bool_func(a,b) { }