mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Catch of OOM situation.
This commit is contained in:
parent
72b6d01848
commit
75b4eb5cc9
2 changed files with 5 additions and 0 deletions
|
@ -6426,6 +6426,9 @@ find_field_in_natural_join(THD *thd, TABLE_LIST *table_ref, const char *name,
|
|||
column reference. See create_view_field() for details.
|
||||
*/
|
||||
item= nj_col->create_item(thd);
|
||||
if (!item)
|
||||
DBUG_RETURN(NULL);
|
||||
|
||||
/*
|
||||
*ref != NULL means that *ref contains the item that we need to
|
||||
replace. If the item was aliased by the user, set the alias to
|
||||
|
|
|
@ -5252,6 +5252,8 @@ Item *create_view_field(THD *thd, TABLE_LIST *view, Item **field_ref,
|
|||
Item *item= new Item_direct_view_ref(&view->view->select_lex.context,
|
||||
field_ref, view->alias,
|
||||
name, view);
|
||||
if (!item)
|
||||
return NULL;
|
||||
/*
|
||||
Force creation of nullable item for the result tmp table for outer joined
|
||||
views/derived tables.
|
||||
|
|
Loading…
Reference in a new issue