diff options
Diffstat (limited to 'sql/opt_range.cc')
| -rw-r--r-- | sql/opt_range.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 3fa7276515a..718012a81b6 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -2703,7 +2703,8 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use, PARAM param; bool force_group_by = false; - if (check_stack_overrun(thd, 2*STACK_MIN_SIZE + sizeof(PARAM))) + if (check_stack_overrun(thd, 2*STACK_MIN_SIZE + sizeof(PARAM) + + STACK_BUFF_ALLOC)) DBUG_RETURN(0); // Fatal error flag is set /* set up parameter that is passed to all functions */ |
