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

Catch of OOM situation.

This commit is contained in:
Oleksandr Byelkin
2018-06-06 15:27:57 +02:00
parent 72b6d01848
commit 75b4eb5cc9
2 changed files with 5 additions and 0 deletions

View File

@ -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