Commit 5128b54c authored by Davi Arnaut's avatar Davi Arnaut

Post-merge fixes for backports.

mysql-test/r/sp-error.result:
  Update test case result.
mysql-test/t/dirty_close.test:
  Dirty close does not work under embedded.
mysql-test/t/sp-error.test:
  Use the specific error number so it won't catch
  other non-fatal errors.
parent 827cbd2b
...@@ -1664,7 +1664,8 @@ set @old_recursion_depth = @@max_sp_recursion_depth; ...@@ -1664,7 +1664,8 @@ set @old_recursion_depth = @@max_sp_recursion_depth;
set @@max_sp_recursion_depth = 255; set @@max_sp_recursion_depth = 255;
create procedure p1(a int) create procedure p1(a int)
begin begin
declare continue handler for sqlexception select 'exception'; declare continue handler for 1436 -- ER_STACK_OVERRUN_NEED_MORE
select 'exception';
call p1(a+1); call p1(a+1);
end| end|
call p1(1); call p1(1);
......
--source include/not_embedded.inc
# Save the initial number of concurrent sessions # Save the initial number of concurrent sessions
--source include/count_sessions.inc --source include/count_sessions.inc
......
...@@ -2419,7 +2419,6 @@ end$$ ...@@ -2419,7 +2419,6 @@ end$$
delimiter ;$$ delimiter ;$$
# #
# Bug#15192: "fatal errors" are caught by handlers in stored procedures # Bug#15192: "fatal errors" are caught by handlers in stored procedures
# #
...@@ -2432,11 +2431,12 @@ set @@max_sp_recursion_depth = 255; ...@@ -2432,11 +2431,12 @@ set @@max_sp_recursion_depth = 255;
delimiter |; delimiter |;
create procedure p1(a int) create procedure p1(a int)
begin begin
declare continue handler for sqlexception select 'exception'; declare continue handler for 1436 -- ER_STACK_OVERRUN_NEED_MORE
select 'exception';
call p1(a+1); call p1(a+1);
end| end|
delimiter ;| delimiter ;|
--error 0,ER_STACK_OVERRUN_NEED_MORE --error 0,ER_STACK_OVERRUN_NEED_MORE,ER_SP_RECURSION_LIMIT
call p1(1); call p1(1);
set @@max_sp_recursion_depth = @old_recursion_depth; set @@max_sp_recursion_depth = @old_recursion_depth;
drop procedure p1; drop procedure p1;
......
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