mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed bug mdev-4944.
The patch to fix mdev-4418 turned out to be incorrect. At the substitution of single row tables in make_join_statistics() the used multiple equalities may change and references to the new multiple equalities must be updated. The function remove_eq_conds() takes care of it and it should be called right after the substitution of single row tables. Calling it after the call of make_join_statistics was a mistake.
This commit is contained in:
@ -1139,6 +1139,11 @@ public:
|
||||
bool need_tmp, hidden_group_fields;
|
||||
DYNAMIC_ARRAY keyuse;
|
||||
Item::cond_result cond_value, having_value;
|
||||
/**
|
||||
Impossible where after reading const tables
|
||||
(set in make_join_statistics())
|
||||
*/
|
||||
bool impossible_where;
|
||||
List<Item> all_fields; ///< to store all fields that used in query
|
||||
///Above list changed to use temporary table
|
||||
List<Item> tmp_all_fields1, tmp_all_fields2, tmp_all_fields3;
|
||||
|
Reference in New Issue
Block a user