Commit bde7d093 authored by unknown's avatar unknown

stack overflow check added for subqueries processing (BUG#4554)


sql/item_subselect.cc:
  stack overflow check added for subqueries processing
parent dd01a13a
......@@ -128,7 +128,12 @@ bool Item_subselect::fix_fields(THD *thd_param, TABLE_LIST *tables, Item **ref)
stmt= thd->current_statement;
char const *save_where= thd->where;
int res= engine->prepare();
int res;
if (check_stack_overrun(thd, (gptr)&res))
return 1;
res= engine->prepare();
// all transformetion is done (used by prepared statements)
changed= 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment