1
0
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:
Aleksey Midenkov
2019-08-28 19:51:23 +03:00
parent c3f35ea55a
commit 6a490ca0fb
3 changed files with 12 additions and 7 deletions

View File

@ -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;
}