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

SQL: optimized build fix on view/derived

This commit is contained in:
Aleksey Midenkov
2017-10-27 15:23:20 +03:00
parent 669fd1d962
commit ca463b533e
3 changed files with 15 additions and 14 deletions

View File

@ -7441,6 +7441,7 @@ Item *LEX::make_item_func_replace(THD *thd,
bool SELECT_LEX::vers_push_field(THD *thd, TABLE_LIST *table, const LEX_CSTRING field_name)
{
DBUG_ASSERT(field_name.str);
Item_field *fld= new (thd->mem_root) Item_field(thd, &context,
table->db, table->alias, &field_name);
if (!fld)