diff options
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/ctype_ucs.test | 2 | ||||
-rw-r--r-- | mysql-test/t/innodb.test | 2 | ||||
-rw-r--r-- | mysql-test/t/mix_innodb_myisam_binlog.test | 33 | ||||
-rw-r--r-- | mysql-test/t/mysqlbinlog.test | 5 | ||||
-rw-r--r-- | mysql-test/t/mysqlbinlog2.test | 16 | ||||
-rw-r--r-- | mysql-test/t/rpl_charset.test | 3 | ||||
-rw-r--r-- | mysql-test/t/rpl_error_ignored_table.test | 2 | ||||
-rw-r--r-- | mysql-test/t/rpl_loaddata_rule_m.test | 2 | ||||
-rw-r--r-- | mysql-test/t/rpl_loaddata_rule_s.test | 2 | ||||
-rw-r--r-- | mysql-test/t/rpl_log.test | 6 | ||||
-rw-r--r-- | mysql-test/t/rpl_log_pos.test | 2 | ||||
-rw-r--r-- | mysql-test/t/rpl_user_variables.test | 2 | ||||
-rw-r--r-- | mysql-test/t/strict.test | 4 | ||||
-rw-r--r-- | mysql-test/t/user_var.test | 2 |
14 files changed, 47 insertions, 36 deletions
diff --git a/mysql-test/t/ctype_ucs.test b/mysql-test/t/ctype_ucs.test index 954c4a8d8ab..7d34c4504bd 100644 --- a/mysql-test/t/ctype_ucs.test +++ b/mysql-test/t/ctype_ucs.test @@ -338,7 +338,7 @@ create table t2 (c char(30)) charset=ucs2; set @v=convert('abc' using ucs2); reset master; insert into t2 values (@v); -show binlog events from 95; +show binlog events from 96; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index b16f627f1b8..3cfd173165b 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -139,7 +139,7 @@ select n from t1; rollback to savepoint `savept2`; release savepoint `my_savepoint`; select n from t1; --- error 1181 +-- error 1305 rollback to savepoint `my_savepoint`; set autocommit=1; # nop diff --git a/mysql-test/t/mix_innodb_myisam_binlog.test b/mysql-test/t/mix_innodb_myisam_binlog.test index 11d3af11c42..08a81c850eb 100644 --- a/mysql-test/t/mix_innodb_myisam_binlog.test +++ b/mysql-test/t/mix_innodb_myisam_binlog.test @@ -26,7 +26,8 @@ insert into t2 select * from t1; commit; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=12" "xid=7" +show binlog events from 96; delete from t1; delete from t2; @@ -39,7 +40,7 @@ insert into t2 select * from t1; rollback; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -54,7 +55,8 @@ rollback to savepoint my_savepoint; commit; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=45" "xid=24" +show binlog events from 96; delete from t1; delete from t2; @@ -71,7 +73,8 @@ commit; select a from t1 order by a; # check that savepoints work :) --replace_column 5 # -show binlog events from 95; +--replace_result "xid=67" "xid=36" +show binlog events from 96; # and when ROLLBACK is not explicit? delete from t1; @@ -92,7 +95,7 @@ connection con2; # logging has been done, we use a user lock. select get_lock("a",10); --replace_column 5 # -show binlog events from 95; +show binlog events from 96; # and when not in a transact1on? delete from t1; @@ -103,7 +106,8 @@ insert into t1 values(9); insert into t2 select * from t1; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=116" "xid=59" +show binlog events from 96; # Check that when the query updat1ng the MyISAM table is the first in the # transaction, we log it immediately. @@ -115,12 +119,14 @@ insert into t1 values(10); # first make t1 non-empty begin; insert into t2 select * from t1; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=130" "xid=65" +show binlog events from 96; insert into t1 values(11); commit; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=130" "xid=65" "xid=133" "xid=67" +show binlog events from 96; # Check that things work like before this BEGIN/ROLLBACK code was added, @@ -138,7 +144,8 @@ insert into t2 select * from t1; commit; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=152" "xid=77" +show binlog events from 96; delete from t1; delete from t2; @@ -150,7 +157,7 @@ insert into t2 select * from t1; rollback; --replace_column 5 # -show binlog events from 95; +show binlog events from 96; delete from t1; delete from t2; @@ -165,7 +172,8 @@ rollback to savepoint my_savepoint; commit; --replace_column 5 # -show binlog events from 95; +--replace_result "xid=184" "xid=93" +show binlog events from 96; delete from t1; delete from t2; @@ -182,7 +190,8 @@ commit; select a from t1 order by a; # check that savepoints work :) --replace_column 5 # -show binlog events from 95; +--replace_result "xid=205" "xid=104" +show binlog events from 96; # Test for BUG#5714, where a MyISAM update in the transaction used to # release row-level locks in InnoDB diff --git a/mysql-test/t/mysqlbinlog.test b/mysql-test/t/mysqlbinlog.test index 7f0a963adde..3f2ab2b31ec 100644 --- a/mysql-test/t/mysqlbinlog.test +++ b/mysql-test/t/mysqlbinlog.test @@ -61,7 +61,7 @@ select "--- --database --" as ""; select "--- --position --" as ""; --enable_query_log --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR ---exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --position=118 $MYSQL_TEST_DIR/var/log/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --position=119 $MYSQL_TEST_DIR/var/log/master-bin.000002 # These are tests for remote binlog. # They should return the same as previous test. @@ -93,7 +93,7 @@ select "--- --database --" as ""; select "--- --position --" as ""; --enable_query_log --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR ---exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --read-from-remote-server --position=118 --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000002 +--exec $MYSQL_BINLOG --short-form --local-load=$MYSQL_TEST_DIR/var/tmp/ --read-from-remote-server --position=119 --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000002 # Bug#7853 (mysqlbinlog does not accept input from stdin) --disable_query_log @@ -107,3 +107,4 @@ select "--- reading stdin --" as ""; # clean up drop table t1, t2; + diff --git a/mysql-test/t/mysqlbinlog2.test b/mysql-test/t/mysqlbinlog2.test index 6a4c99c746d..f2360d51c16 100644 --- a/mysql-test/t/mysqlbinlog2.test +++ b/mysql-test/t/mysqlbinlog2.test @@ -46,11 +46,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 $MYSQL_TEST_DIR/var/log/master-bin.000001 +--exec $MYSQL_BINLOG --short-form --start-position=602 $MYSQL_TEST_DIR/var/log/master-bin.000001 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=601 $MYSQL_TEST_DIR/var/log/master-bin.000001 +--exec $MYSQL_BINLOG --short-form --stop-position=602 $MYSQL_TEST_DIR/var/log/master-bin.000001 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log @@ -75,11 +75,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --start-position=602 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=123 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --stop-position=124 $MYSQL_TEST_DIR/var/log/master-bin.000001 $MYSQL_TEST_DIR/var/log/master-bin.000002 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log @@ -102,11 +102,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 +--exec $MYSQL_BINLOG --short-form --start-position=602 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=601 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 +--exec $MYSQL_BINLOG --short-form --stop-position=602 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log @@ -129,11 +129,11 @@ select "--- offset --" as ""; --disable_query_log select "--- start-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --start-position=601 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 +--exec $MYSQL_BINLOG --short-form --start-position=602 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 --disable_query_log select "--- stop-position --" as ""; --enable_query_log ---exec $MYSQL_BINLOG --short-form --stop-position=123 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 +--exec $MYSQL_BINLOG --short-form --stop-position=124 --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002 --disable_query_log select "--- start-datetime --" as ""; --enable_query_log diff --git a/mysql-test/t/rpl_charset.test b/mysql-test/t/rpl_charset.test index e8a12ff8317..c61df09fdcc 100644 --- a/mysql-test/t/rpl_charset.test +++ b/mysql-test/t/rpl_charset.test @@ -107,7 +107,7 @@ connection master; drop database mysqltest2; drop database mysqltest3; --replace_column 2 # 5 # -show binlog events from 95; +show binlog events from 96; sync_slave_with_master; # Check that we can change global.collation_server (since 5.0.3) @@ -156,3 +156,4 @@ connection master; --exec $MYSQL_BINLOG --short-form $MYSQL_TEST_DIR/var/log/master-bin.000001 drop table t1; sync_slave_with_master; + diff --git a/mysql-test/t/rpl_error_ignored_table.test b/mysql-test/t/rpl_error_ignored_table.test index 487869e5fef..a520024b7da 100644 --- a/mysql-test/t/rpl_error_ignored_table.test +++ b/mysql-test/t/rpl_error_ignored_table.test @@ -48,7 +48,7 @@ connection master; --error 0,1053; reap; connection master1; -show binlog events from 95; +show binlog events from 96; save_master_pos; connection slave; # SQL slave thread should not have stopped (because table of the killed diff --git a/mysql-test/t/rpl_loaddata_rule_m.test b/mysql-test/t/rpl_loaddata_rule_m.test index 3f19a09c6f7..ff00e8f4925 100644 --- a/mysql-test/t/rpl_loaddata_rule_m.test +++ b/mysql-test/t/rpl_loaddata_rule_m.test @@ -19,5 +19,5 @@ create database mysqltest; create table t1(a int, b int, unique(b)); use mysqltest; load data infile '../../std_data/rpl_loaddata.dat' into table test.t1; -show binlog events from 95; # should be nothing +show binlog events from 96; # should be nothing drop database mysqltest; diff --git a/mysql-test/t/rpl_loaddata_rule_s.test b/mysql-test/t/rpl_loaddata_rule_s.test index 8163cd20f00..71a3929da32 100644 --- a/mysql-test/t/rpl_loaddata_rule_s.test +++ b/mysql-test/t/rpl_loaddata_rule_s.test @@ -17,4 +17,4 @@ save_master_pos; connection slave; sync_with_master; select count(*) from t1; # check that LOAD was replicated -show binlog events from 95; # should be nothing +show binlog events from 96; # should be nothing diff --git a/mysql-test/t/rpl_log.test b/mysql-test/t/rpl_log.test index 178199d6160..055c1a7c93a 100644 --- a/mysql-test/t/rpl_log.test +++ b/mysql-test/t/rpl_log.test @@ -38,9 +38,9 @@ select count(*) from t1; drop table t1; --replace_result $VERSION VERSION show binlog events; -show binlog events from 95 limit 1; -show binlog events from 95 limit 2; -show binlog events from 95 limit 2,1; +show binlog events from 96 limit 1; +show binlog events from 96 limit 2; +show binlog events from 96 limit 2,1; flush logs; # We need an extra update before doing save_master_pos. diff --git a/mysql-test/t/rpl_log_pos.test b/mysql-test/t/rpl_log_pos.test index 634bf9449fd..c9d7056924f 100644 --- a/mysql-test/t/rpl_log_pos.test +++ b/mysql-test/t/rpl_log_pos.test @@ -38,7 +38,7 @@ insert into t1 values (1),(2),(3); save_master_pos; connection slave; stop slave; -change master to master_log_pos=95; +change master to master_log_pos=96; start slave; sync_with_master; select * from t1; diff --git a/mysql-test/t/rpl_user_variables.test b/mysql-test/t/rpl_user_variables.test index c0327a7ddb3..47bc9de37ba 100644 --- a/mysql-test/t/rpl_user_variables.test +++ b/mysql-test/t/rpl_user_variables.test @@ -46,7 +46,7 @@ save_master_pos; connection slave; sync_with_master; select * from t1; -show binlog events from 95; +show binlog events from 96; connection master; drop table t1; save_master_pos; diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test index 7da07f267b2..d8833f6f914 100644 --- a/mysql-test/t/strict.test +++ b/mysql-test/t/strict.test @@ -866,12 +866,12 @@ DROP TABLE t1; CREATE TABLE t1 (col1 CHAR(5), col2 VARCHAR(6)); INSERT INTO t1 VALUES ('hello', 'hello'),('he', 'he'),('hello ', 'hello '); ---error 1400 +--error 1406 INSERT INTO t1 (col1) VALUES ('hellobob'); --error 1265 INSERT INTO t1 (col2) VALUES ('hellobob'); INSERT INTO t1 (col2) VALUES ('hello '); ---error 1400 +--error 1406 UPDATE t1 SET col1 ='hellobob' WHERE col1 ='he'; --error 1265 UPDATE t1 SET col2 ='hellobob' WHERE col2 ='he'; diff --git a/mysql-test/t/user_var.test b/mysql-test/t/user_var.test index 49cf981b966..5dc24bde21f 100644 --- a/mysql-test/t/user_var.test +++ b/mysql-test/t/user_var.test @@ -110,7 +110,7 @@ INSERT INTO t1 VALUES(@`a b`); set @var1= "';aaa"; SET @var2=char(ascii('a')); insert into t1 values (@var1),(@var2); -show binlog events from 95; +show binlog events from 96; # more important than SHOW BINLOG EVENTS, mysqlbinlog (where we # absolutely need variables names to be quoted and strings to be # escaped). |