mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Cleanup during review of new pushed code
include/my_global.h: Safer macros to avoid possible overflows sql/item_cmpfunc.cc: Simple optimization sql/sp_head.cc: Indentation fixes Remove not needed "else" levels Added error checking for 'new' Simpler reseting of thd->spcont in execute_procedure sql/sql_base.cc: Faster new sql/sql_lex.cc: Use 'TRUE' instead of 'true' sql/sql_parse.cc: Faster new sql/sql_view.cc: No need to set 'tables' as it's not used sql/table.cc: Simpler DBUG_ASSERT()
This commit is contained in:
@@ -3363,7 +3363,7 @@ static bool
|
||||
set_new_item_local_context(THD *thd, Item_ident *item, TABLE_LIST *table_ref)
|
||||
{
|
||||
Name_resolution_context *context;
|
||||
if (!(context= new Name_resolution_context))
|
||||
if (!(context= new (thd->mem_root) Name_resolution_context))
|
||||
return TRUE;
|
||||
context->init();
|
||||
context->first_name_resolution_table=
|
||||
|
||||
Reference in New Issue
Block a user