mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
Stage 2 of MDEV-6152:
- Added mem_root to all calls to new Item - Added private method operator new(size_t size) to Item to ensure that we always use a mem_root when creating an item. This saves use once call to current_thd per Item creation
This commit is contained in:
parent
31e365efae
commit
1bae0d9e56
51 changed files with 1146 additions and 881 deletions
|
|
@ -1217,7 +1217,7 @@ void build_eq_mods_for_cond(THD *thd, Dep_analysis_context *ctx,
|
|||
}
|
||||
case Item_func::ISNULL_FUNC:
|
||||
{
|
||||
Item *tmp=new Item_null(thd);
|
||||
Item *tmp=new (thd->mem_root) Item_null(thd);
|
||||
if (tmp)
|
||||
check_equality(ctx, eq_mod, *and_level, cond_func, args[0], tmp);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue