Commit 34f4dffd authored by unknown's avatar unknown

Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0

into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0

parents 80d3415b e5c4d97c
...@@ -5,7 +5,7 @@ select get_lock("a", 20); ...@@ -5,7 +5,7 @@ select get_lock("a", 20);
get_lock("a", 20) get_lock("a", 20)
1 1
reset master; reset master;
insert into t2 values (null, null), (null, get_lock("a", 10)),(null, get_lock("a", 10)); insert into t2 values (null, null), (null, get_lock("a", 10));
select @result /* must be zero either way */; select @result /* must be zero either way */;
@result @result
0 0
......
...@@ -22,7 +22,7 @@ select get_lock("a", 20); ...@@ -22,7 +22,7 @@ select get_lock("a", 20);
connection con2; connection con2;
let $ID= `select connection_id()`; let $ID= `select connection_id()`;
reset master; reset master;
send insert into t2 values (null, null), (null, get_lock("a", 10)),(null, get_lock("a", 10)); send insert into t2 values (null, null), (null, get_lock("a", 10));
connection con1; connection con1;
...@@ -36,7 +36,7 @@ eval kill query $ID; ...@@ -36,7 +36,7 @@ eval kill query $ID;
connection con2; connection con2;
--error 0,ER_QUERY_INTERRUPTED --error 0,ER_QUERY_INTERRUPTED
reap; reap;
let $rows= `select count(*) from t2 /* must be 1 or 0 */`; let $rows= `select count(*) from t2 /* must be 2 or 0 */`;
--exec $MYSQL_BINLOG --start-position=126 $MYSQLTEST_VARDIR/log/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog --exec $MYSQL_BINLOG --start-position=126 $MYSQLTEST_VARDIR/log/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
...@@ -46,7 +46,7 @@ is not null; ...@@ -46,7 +46,7 @@ is not null;
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
let $error_code= `select @a like "%#%error_code=0%" /* must return 1 or 0*/`; let $error_code= `select @a like "%#%error_code=0%" /* must return 1 or 0*/`;
let $insert_binlogged= `select @a like "%insert into%" /* must return 1 or 0 */`; let $insert_binlogged= `select @a like "%insert into%" /* must return 1 or 0 */`;
eval set @result= $rows-2*$error_code - $insert_binlogged; eval set @result= $rows- $error_code - $insert_binlogged;
enable_abort_on_error; enable_abort_on_error;
enable_query_log; enable_query_log;
......
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