[MDEV-8286] Likely a redundant declaration of Item_cache::used_table_map Created: 2015-06-08  Updated: 2015-06-09  Resolved: 2015-06-09

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 5.5, 10.0, 10.1
Fix Version/s: 5.5.44

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None


 Description   

According to these declarations:

class Item_basic_constant :public Item
{
  table_map used_table_map;
  ...
};
...
class Item_cache: public Item_basic_constant
{
protected:
  Item *example;
  table_map used_table_map;
...
}

Item_cache has two used_tables_cache, one of which is declared in Item_cache itself, and another one is derived from Item_basic_constant.

It's very likely that the second declaration is not really necessary.


Generated at Thu Feb 08 07:26:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.