diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-11-18 23:54:01 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-11-26 11:34:16 +0400 |
commit | 753d1f868c0fd52c2ec44a97fe116c01a38d5ffd (patch) | |
tree | 15334b9db1e7dbba85c4486ec93c47f0dee59478 /sql/item_buff.cc | |
parent | 0746a0770867b621cb4fee08239419bec69a2de8 (diff) | |
download | mariadb-git-753d1f868c0fd52c2ec44a97fe116c01a38d5ffd.tar.gz |
MDEV-8716 - Obsolete sql_calloc() in favor of THD::calloc() and thd_calloc()
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r-- | sql/item_buff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc index d1134525f7b..62c2f76dc2e 100644 --- a/sql/item_buff.cc +++ b/sql/item_buff.cc @@ -43,7 +43,7 @@ Cached_item *new_Cached_item(THD *thd, Item *item, bool pass_through_ref) { Item_field *real_item= (Item_field *) item->real_item(); Field *cached_field= real_item->field; - return new Cached_item_field(cached_field); + return new (thd->mem_root) Cached_item_field(thd, cached_field); } switch (item->result_type()) { case STRING_RESULT: |