1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-14828 Server crashes in JOIN::prepare / setup_fields on 2nd execution of PS [fixes #437]

This commit is contained in:
Aleksey Midenkov
2018-01-02 15:28:50 +03:00
parent 8efca72f4a
commit b8b5d8d87d
4 changed files with 23 additions and 4 deletions

View File

@@ -7093,9 +7093,9 @@ bool Table_scope_and_contents_source_st::vers_fix_system_fields(
DBUG_ASSERT(items);
while (added--)
{
items->push_back(
new (thd->mem_root) Item_default_value(thd, thd->lex->current_context()),
thd->mem_root);
Item_default_value *item= new (thd->mem_root)
Item_default_value(thd, thd->lex->current_context());
items->push_back(item, thd->mem_root);
}
}