summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-08-27 23:01:12 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-09-01 14:04:24 +0300
commita3e49c0d36c0347e9dee43f9996ca7c407836a51 (patch)
treebf0249eb01f0db04ea400df516b8804bb1ab4ad9 /sql/partition_info.cc
parent396da1a70548f80ecf781cf352b0d4a5740c54f6 (diff)
downloadmariadb-git-a3e49c0d36c0347e9dee43f9996ca7c407836a51.tar.gz
MDEV-18501 Partition pruning doesn't work for historical queries (cleanup)
Cleanup removes useless allocation.
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index ba6fc8a49ec..65cf0298f4f 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -1473,15 +1473,8 @@ void partition_info::print_no_partition_found(TABLE *table_arg, myf errflag)
FALSE Success
*/
-bool partition_info::set_part_expr(THD *thd, char *start_token, Item *item_ptr,
- char *end_token, bool is_subpart)
+bool partition_info::set_part_expr(THD *thd, Item *item_ptr, bool is_subpart)
{
- size_t expr_len= end_token - start_token;
- char *func_string= (char*) thd->memdup(start_token, expr_len);
-
- if (unlikely(!func_string))
- return TRUE;
-
if (is_subpart)
{
list_of_subpart_fields= FALSE;