1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-20052 Add a MEM_ROOT pointer argument to Type_handler::make_xxx_field()

This commit is contained in:
Alexander Barkov
2019-07-12 06:58:51 +04:00
parent 1517087b54
commit e6ff3f9d1c
17 changed files with 496 additions and 333 deletions

View File

@ -1034,7 +1034,8 @@ public:
bool add(const Type_handler *handler,
uint16 metadata, const Field *target_field)
{
Field *tmp= handler->make_conversion_table_field(this, metadata,
Field *tmp= handler->make_conversion_table_field(in_use->mem_root,
this, metadata,
target_field);
if (!tmp)
return true;