diff options
author | unknown <andrey@example.com> | 2006-08-24 19:36:26 +0200 |
---|---|---|
committer | unknown <andrey@example.com> | 2006-08-24 19:36:26 +0200 |
commit | 807ecdf43ae2c5f35c2f350e67242580618ff9a8 (patch) | |
tree | f84fe784e59218f7367d88462af13869a343b1c3 /sql/sql_parse.cc | |
parent | 965a3970c91dc4554a8ccbd3e358b1b2c20a0cfb (diff) | |
download | mariadb-git-807ecdf43ae2c5f35c2f350e67242580618ff9a8.tar.gz |
Fix for bug#21416 SP: Recursion level higher than zero needed for non-recursive call
The following procedure was not possible if max_sp_recursion_depth is 0
create procedure show_proc() show create procedure show_proc;
Actually there is no recursive call but the limit is checked.
Solved by temporarily increasing the thread's limit just before the fetch from cache
and decreasing after that.
mysql-test/r/sp.result:
update result
mysql-test/t/sp.test:
Test for bug #21416 SP: Recursion level higher than zero needed for non-recursive call
sql/sp.cc:
Increase the max_sp_recursion_depth temporarily for SHOW CREATE PROCEDURE call.
This call is in fact not recursive but is counted as such. Outcome, it will work
always but if max_sp_recursion_depth is reached we are going to cache one more
sp_head instance.
Diffstat (limited to 'sql/sql_parse.cc')
0 files changed, 0 insertions, 0 deletions