mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix of MDEV-3874: Server crashes in Item_field::print on a SELECT from a MERGE view with materialization+semijoin, subquery, ORDER BY.
The problem was that in debugging binaries it try to print item to assign human readable name to the item. But subquery item was already freed (join_free/cleanup with full cleanup) so Item_field refers to temporary table which memory had been already freed.
This commit is contained in:
@ -1141,6 +1141,8 @@ public:
|
||||
bool skip_sort_order;
|
||||
|
||||
bool need_tmp, hidden_group_fields;
|
||||
/* TRUE if there was full cleunap of the JOIN */
|
||||
bool cleaned;
|
||||
DYNAMIC_ARRAY keyuse;
|
||||
Item::cond_result cond_value, having_value;
|
||||
List<Item> all_fields; ///< to store all fields that used in query
|
||||
@ -1268,6 +1270,7 @@ public:
|
||||
zero_result_cause= 0;
|
||||
optimized= 0;
|
||||
initialized= 0;
|
||||
cleaned= 0;
|
||||
cond_equal= 0;
|
||||
having_equal= 0;
|
||||
exec_const_cond= 0;
|
||||
|
Reference in New Issue
Block a user