Fix main.stack on Windows
A part of the test, that tests that a frame of recursive SP takes the same amount of stack, relies on the fact that 3 calls to that SP are executed in the same OS thread. This is not guaranteed with threadpool(not with Windows native threadpool, anyway) Fix the test to execute SP calls in the same thread, as semicolon-separated batched command.
This commit is contained in:
parent
86b257f870
commit
df602ff7fa
@ -37,6 +37,7 @@ $$
|
||||
call recursion(0,2,@s1);
|
||||
call recursion(0,3,@s2);
|
||||
call recursion(0,4,@s3);
|
||||
$$
|
||||
select @s1 > 0 && @s2 > 0 && @s3 > 0;
|
||||
@s1 > 0 && @s2 > 0 && @s3 > 0
|
||||
1
|
||||
|
@ -40,11 +40,13 @@ begin
|
||||
end;
|
||||
$$
|
||||
|
||||
delimiter ;$$
|
||||
|
||||
call recursion(0,2,@s1);
|
||||
call recursion(0,3,@s2);
|
||||
call recursion(0,4,@s3);
|
||||
$$
|
||||
|
||||
delimiter ;$$
|
||||
|
||||
|
||||
select @s1 > 0 && @s2 > 0 && @s3 > 0;
|
||||
if (`select @s2-@s1 <> @s3 - @s2`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user