Commit 4d4f2ed2 authored by Alexander Barkov's avatar Alexander Barkov

Moving Item_bool_func::add_key_fields_optimize_op() to Item_bool_func2.

It's now needed outside of Item_bool_func2 any more.
parent e04f6e7e
...@@ -122,10 +122,6 @@ public: ...@@ -122,10 +122,6 @@ public:
class Item_bool_func :public Item_int_func 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: public:
Item_bool_func() :Item_int_func() {} Item_bool_func() :Item_int_func() {}
Item_bool_func(Item *a) :Item_int_func(a) {} Item_bool_func(Item *a) :Item_int_func(a) {}
...@@ -291,6 +287,10 @@ public: ...@@ -291,6 +287,10 @@ public:
class Item_bool_func2 :public Item_bool_func class Item_bool_func2 :public Item_bool_func
{ /* Bool with 2 string args */ { /* Bool with 2 string args */
bool have_rev_func() const { return rev_functype() != UNKNOWN_FUNC; } 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: public:
Item_bool_func2(Item *a,Item *b) Item_bool_func2(Item *a,Item *b)
:Item_bool_func(a,b) { } :Item_bool_func(a,b) { }
......
...@@ -4773,7 +4773,7 @@ Item_func_like::add_key_fields(JOIN *join, KEY_FIELD **key_fields, ...@@ -4773,7 +4773,7 @@ Item_func_like::add_key_fields(JOIN *join, KEY_FIELD **key_fields,
void void
Item_bool_func::add_key_fields_optimize_op(JOIN *join, KEY_FIELD **key_fields, Item_bool_func2::add_key_fields_optimize_op(JOIN *join, KEY_FIELD **key_fields,
uint *and_level, uint *and_level,
table_map usable_tables, table_map usable_tables,
SARGABLE_PARAM **sargables, SARGABLE_PARAM **sargables,
......
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