bugfix: non-deterministic vcols in partitioning

This commit is contained in:
Sergei Golubchik 2016-11-08 17:24:42 +01:00
commit 2a0f7a34d6
6 changed files with 34 additions and 0 deletions

View file

@ -3339,6 +3339,8 @@ partititon_err:
outparam->file= 0; // For easier error checking
outparam->db_stat=0;
thd->lex->context_analysis_only= save_context_analysis_only;
if (outparam->expr_arena)
outparam->expr_arena->free_items();
free_root(&outparam->mem_root, MYF(0)); // Safe to call on bzero'd root
outparam->alias.free();
DBUG_RETURN (error);