summaryrefslogtreecommitdiff
path: root/sql/item_buff.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-11-18 23:54:01 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-11-26 11:34:16 +0400
commit753d1f868c0fd52c2ec44a97fe116c01a38d5ffd (patch)
tree15334b9db1e7dbba85c4486ec93c47f0dee59478 /sql/item_buff.cc
parent0746a0770867b621cb4fee08239419bec69a2de8 (diff)
downloadmariadb-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.cc2
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: