Commit b461810d authored by unknown's avatar unknown

Update xid's as an effect of not closing the prepared statements all the time

parent adff49d9
...@@ -29,7 +29,7 @@ insert into t2 select * from t1; ...@@ -29,7 +29,7 @@ insert into t2 select * from t1;
commit; commit;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=15" "xid=8" --replace_result "xid=14" "xid=8"
show binlog events from 98; show binlog events from 98;
delete from t1; delete from t1;
...@@ -58,7 +58,7 @@ rollback to savepoint my_savepoint; ...@@ -58,7 +58,7 @@ rollback to savepoint my_savepoint;
commit; commit;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=48" "xid=25" --replace_result "xid=47" "xid=25"
show binlog events from 98; show binlog events from 98;
delete from t1; delete from t1;
...@@ -76,7 +76,7 @@ commit; ...@@ -76,7 +76,7 @@ commit;
select a from t1 order by a; # check that savepoints work :) select a from t1 order by a; # check that savepoints work :)
--replace_column 5 # --replace_column 5 #
--replace_result "xid=70" "xid=37" --replace_result "xid=69" "xid=37"
show binlog events from 98; show binlog events from 98;
# and when ROLLBACK is not explicit? # and when ROLLBACK is not explicit?
...@@ -109,7 +109,7 @@ insert into t1 values(9); ...@@ -109,7 +109,7 @@ insert into t1 values(9);
insert into t2 select * from t1; insert into t2 select * from t1;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=119" "xid=60" --replace_result "xid=117" "xid=60"
show binlog events from 98; show binlog events from 98;
# Check that when the query updat1ng the MyISAM table is the first in the # Check that when the query updat1ng the MyISAM table is the first in the
...@@ -122,13 +122,13 @@ insert into t1 values(10); # first make t1 non-empty ...@@ -122,13 +122,13 @@ insert into t1 values(10); # first make t1 non-empty
begin; begin;
insert into t2 select * from t1; insert into t2 select * from t1;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=133" "xid=66" --replace_result "xid=131" "xid=66"
show binlog events from 98; show binlog events from 98;
insert into t1 values(11); insert into t1 values(11);
commit; commit;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=133" "xid=66" "xid=136" "xid=68" --replace_result "xid=131" "xid=66" "xid=134" "xid=68"
show binlog events from 98; show binlog events from 98;
...@@ -147,7 +147,7 @@ insert into t2 select * from t1; ...@@ -147,7 +147,7 @@ insert into t2 select * from t1;
commit; commit;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=155" "xid=78" --replace_result "xid=153" "xid=78"
show binlog events from 98; show binlog events from 98;
delete from t1; delete from t1;
...@@ -175,7 +175,7 @@ rollback to savepoint my_savepoint; ...@@ -175,7 +175,7 @@ rollback to savepoint my_savepoint;
commit; commit;
--replace_column 5 # --replace_column 5 #
--replace_result "xid=187" "xid=94" --replace_result "xid=185" "xid=94"
show binlog events from 98; show binlog events from 98;
delete from t1; delete from t1;
...@@ -193,7 +193,7 @@ commit; ...@@ -193,7 +193,7 @@ commit;
select a from t1 order by a; # check that savepoints work :) select a from t1 order by a; # check that savepoints work :)
--replace_column 5 # --replace_column 5 #
--replace_result "xid=208" "xid=105" --replace_result "xid=206" "xid=105"
show binlog events from 98; show binlog events from 98;
# Test for BUG#5714, where a MyISAM update in the transaction used to # Test for BUG#5714, where a MyISAM update in the transaction used to
...@@ -254,7 +254,7 @@ disconnect con2; ...@@ -254,7 +254,7 @@ disconnect con2;
connection con3; connection con3;
select get_lock("lock1",60); select get_lock("lock1",60);
--replace_column 5 # --replace_column 5 #
--replace_result "xid=208" "xid=105" "xid=227" "xid=114" "xid=230" "xid=115" "xid=234" "xid=117" "xid=261" "xid=132" --replace_result "xid=206" "xid=105" "xid=224" "xid=114" "xid=227" "xid=115" "xid=231" "xid=117" "xid=258" "xid=132"
show binlog events from 98; show binlog events from 98;
do release_lock("lock1"); do release_lock("lock1");
drop table t0,t2; drop table t0,t2;
......
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