diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-11-18 19:21:30 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-11-26 11:34:15 +0400 |
commit | 13af8650a82f9452d36fe001c42b0b2c794f98d4 (patch) | |
tree | 5eb95393697e5346e541a7018e143b77d6d48146 /sql/partition_info.cc | |
parent | 55e67c3e344317c6f349f5391e5d117ec51ae062 (diff) | |
download | mariadb-git-13af8650a82f9452d36fe001c42b0b2c794f98d4.tar.gz |
MDEV-8719 - Obsolete sql_memdup() in favor of THD::memdup() and thd_memdup()
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r-- | sql/partition_info.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc index a92c7686eaf..36bb2513c9b 100644 --- a/sql/partition_info.cc +++ b/sql/partition_info.cc @@ -1940,11 +1940,11 @@ void partition_info::print_no_partition_found(TABLE *table_arg, myf errflag) FALSE Success */ -bool partition_info::set_part_expr(char *start_token, Item *item_ptr, +bool partition_info::set_part_expr(THD *thd, char *start_token, Item *item_ptr, char *end_token, bool is_subpart) { uint expr_len= end_token - start_token; - char *func_string= (char*) sql_memdup(start_token, expr_len); + char *func_string= (char*) thd->memdup(start_token, expr_len); if (!func_string) { @@ -3153,7 +3153,7 @@ part_column_list_val *partition_info::add_column_value(THD *thd) return NULL; } -bool partition_info::set_part_expr(char *start_token, Item *item_ptr, +bool partition_info::set_part_expr(THD *thd, char *start_token, Item *item_ptr, char *end_token, bool is_subpart) { (void)start_token; |