Commit b1e10399 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-8286 Likely a redundant declaration of Item_cache::used_table_map

Removing Item_cache::used_table_map, Item_cache::used_tables() and
Item_cache::set_used_tables(). Using the same inherited from
Item_basic_constant implementations instead.
parent a4d93e07
......@@ -4056,7 +4056,6 @@ class Item_cache: public Item_basic_constant
{
protected:
Item *example;
table_map used_table_map;
/**
Field that this object will get value from. This is used by
index-based subquery engines to detect and remove the equality injected
......@@ -4074,7 +4073,7 @@ protected:
bool value_cached;
public:
Item_cache():
example(0), used_table_map(0), cached_field(0),
example(0), cached_field(0),
cached_field_type(MYSQL_TYPE_STRING),
value_cached(0)
{
......@@ -4083,7 +4082,7 @@ public:
null_value= 1;
}
Item_cache(enum_field_types field_type_arg):
example(0), used_table_map(0), cached_field(0),
example(0), cached_field(0),
cached_field_type(field_type_arg),
value_cached(0)
{
......@@ -4092,8 +4091,6 @@ public:
null_value= 1;
}
void set_used_tables(table_map map) { used_table_map= map; }
virtual bool allocate(uint i) { return 0; }
virtual bool setup(Item *item)
{
......@@ -4110,7 +4107,6 @@ public:
enum_field_types field_type() const { return cached_field_type; }
static Item_cache* get_cache(const Item *item);
static Item_cache* get_cache(const Item* item, const Item_result type);
table_map used_tables() const { return used_table_map; }
virtual void keep_array() {}
virtual void print(String *str, enum_query_type query_type);
bool eq_def(Field *field)
......
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