bug in the test case fixed
mysql-test/suite/binlog/r/binlog_killed.result: bug in the test case fixed: the function *must* be declared as NOT DETERMINISTIC because it has side effects (it waits on the get_lock() when invoked more than once). When declared DETERMINISTIC, MariaDB feels free to cache the result and shortcut the execution, which breaks the test logic mysql-test/suite/binlog/t/binlog_killed.test: bug in the test case fixed: the function *must* be declared as NOT DETERMINISTIC because it has side effects (it waits on the get_lock() when invoked more than once). When declared DETERMINISTIC, MariaDB feels free to cache the result and shortcut the execution, which breaks the test logic
This commit is contained in:
parent
6aa4913f47
commit
824cc1c0f2
@ -55,7 +55,7 @@ drop table t4;
|
||||
create table t4 (a int, b int) ENGINE=MyISAM /* for killing update and delete */;
|
||||
create function bug27563(n int)
|
||||
RETURNS int(11)
|
||||
DETERMINISTIC
|
||||
NOT DETERMINISTIC
|
||||
begin
|
||||
if @b > 0 then
|
||||
select get_lock("a", 20) into @a;
|
||||
|
@ -218,7 +218,7 @@ create table t4 (a int, b int) ENGINE=MyISAM /* for killing update and delete */
|
||||
delimiter |;
|
||||
create function bug27563(n int)
|
||||
RETURNS int(11)
|
||||
DETERMINISTIC
|
||||
NOT DETERMINISTIC
|
||||
begin
|
||||
if @b > 0 then
|
||||
select get_lock("a", 20) into @a;
|
||||
|
Loading…
x
Reference in New Issue
Block a user