mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-18501 Partition pruning doesn't work for historical queries (fix)
Pruning fix for SYSTEM_TIME INTERVAL partitioning. Allocating one more element in range_int_array for CURRENT partition is required for RANGE pruning to work correctly (get_partition_id_range_for_endpoint()).
This commit is contained in:
@ -8171,8 +8171,6 @@ bool LEX::part_values_current(THD *thd)
|
||||
elem->type= partition_element::CURRENT;
|
||||
DBUG_ASSERT(part_info->vers_info);
|
||||
part_info->vers_info->now_part= elem;
|
||||
if (unlikely(part_info->init_column_part(thd)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -8203,8 +8201,6 @@ bool LEX::part_values_history(THD *thd)
|
||||
return true;
|
||||
}
|
||||
elem->type= partition_element::HISTORY;
|
||||
if (unlikely(part_info->init_column_part(thd)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user