diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2019-08-28 19:51:23 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2019-09-01 14:04:25 +0300 |
commit | 6a490ca0fbcf0ceeaeee55bd6c98eb1ea8bcb8c5 (patch) | |
tree | 4a50cbefe2463cea839b383b37e38d8f5bdf5db8 /sql/sql_lex.cc | |
parent | c3f35ea55a7150b186284e2ef717d12e6f81e13e (diff) | |
download | mariadb-git-6a490ca0fbcf0ceeaeee55bd6c98eb1ea8bcb8c5.tar.gz |
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()).
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 1825ce7c1ce..d3c98115659 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -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; } |