Commit d57cc144 authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent c4a9280a
...@@ -55,7 +55,7 @@ drop table t4; ...@@ -55,7 +55,7 @@ drop table t4;
create table t4 (a int, b int) ENGINE=MyISAM /* for killing update and delete */; create table t4 (a int, b int) ENGINE=MyISAM /* for killing update and delete */;
create function bug27563(n int) create function bug27563(n int)
RETURNS int(11) RETURNS int(11)
DETERMINISTIC NOT DETERMINISTIC
begin begin
if @b > 0 then if @b > 0 then
select get_lock("a", 20) into @a; 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 */ ...@@ -218,7 +218,7 @@ create table t4 (a int, b int) ENGINE=MyISAM /* for killing update and delete */
delimiter |; delimiter |;
create function bug27563(n int) create function bug27563(n int)
RETURNS int(11) RETURNS int(11)
DETERMINISTIC NOT DETERMINISTIC
begin begin
if @b > 0 then if @b > 0 then
select get_lock("a", 20) into @a; select get_lock("a", 20) into @a;
......
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