diff options
author | Mats Kindahl <mats@sun.com> | 2010-03-17 19:15:41 +0100 |
---|---|---|
committer | Mats Kindahl <mats@sun.com> | 2010-03-17 19:15:41 +0100 |
commit | 96d4a0384629e5cddc93ee215e7af484e4b95bde (patch) | |
tree | a3ede97cb903df372ac9f7a5733905d7d9b19301 /mysql-test/suite | |
parent | ae49d9710b791d1eaf7f552a44067c5108bd8c85 (diff) | |
parent | 2c5f439d651f00f2f13d1f8e94f3701dadf9c7d3 (diff) | |
download | mariadb-git-96d4a0384629e5cddc93ee215e7af484e4b95bde.tar.gz |
Merging with mysql-5.1-bugteam
Diffstat (limited to 'mysql-test/suite')
-rw-r--r-- | mysql-test/suite/rpl/r/rpl_typeconv_innodb.result | 15 | ||||
-rw-r--r-- | mysql-test/suite/rpl/t/rpl_typeconv-slave.opt | 1 | ||||
-rw-r--r-- | mysql-test/suite/rpl/t/rpl_typeconv_innodb.test | 22 |
3 files changed, 38 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/r/rpl_typeconv_innodb.result b/mysql-test/suite/rpl/r/rpl_typeconv_innodb.result new file mode 100644 index 00000000000..e3b8d6de12e --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_typeconv_innodb.result @@ -0,0 +1,15 @@ +stop slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +start slave; +**** Resetting master and slave **** +include/stop_slave.inc +RESET SLAVE; +RESET MASTER; +include/start_slave.inc +CREATE TABLE t1(b1 BIT(1), b2 BIT(2), b3 BIT(3)) ENGINE=InnoDB; +INSERT INTO t1 VALUES (b'0', b'01', b'101'); +Comparing tables master:test.t1 and slave:test.t1 +DROP TABLE t1; diff --git a/mysql-test/suite/rpl/t/rpl_typeconv-slave.opt b/mysql-test/suite/rpl/t/rpl_typeconv-slave.opt new file mode 100644 index 00000000000..73ca7001985 --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_typeconv-slave.opt @@ -0,0 +1 @@ +--innodb
\ No newline at end of file diff --git a/mysql-test/suite/rpl/t/rpl_typeconv_innodb.test b/mysql-test/suite/rpl/t/rpl_typeconv_innodb.test new file mode 100644 index 00000000000..e7882b28065 --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_typeconv_innodb.test @@ -0,0 +1,22 @@ +--source include/have_binlog_format_row.inc +--source include/have_innodb.inc +--source include/master-slave.inc + +# +# BUG#49618: Field length stored incorrectly in binary log for InnoDB +# + +source include/reset_master_and_slave.inc; + +connection master; +CREATE TABLE t1(b1 BIT(1), b2 BIT(2), b3 BIT(3)) ENGINE=InnoDB; +INSERT INTO t1 VALUES (b'0', b'01', b'101'); +sync_slave_with_master; + +let $diff_table_1=master:test.t1; +let $diff_table_2=slave:test.t1; +source include/diff_tables.inc; + +connection master; +DROP TABLE t1; +sync_slave_with_master; |