diff options
author | Serge Kozlov <Serge.Kozlov@oracle.com> | 2011-04-14 00:18:08 +0400 |
---|---|---|
committer | Serge Kozlov <Serge.Kozlov@oracle.com> | 2011-04-14 00:18:08 +0400 |
commit | 729e9a65943823b2636ea8dc3c50486a3844c02c (patch) | |
tree | e19a44352fdefcc60bcac8b1a0c3730255f7ed20 /mysql-test/suite/rpl | |
parent | da267719197397fbf0ba70fe0749788a82581267 (diff) | |
download | mariadb-git-729e9a65943823b2636ea8dc3c50486a3844c02c.tar.gz |
WL#5867, reorganize test cases of bugs suite
Diffstat (limited to 'mysql-test/suite/rpl')
-rw-r--r-- | mysql-test/suite/rpl/r/rpl_bug37426.result | 12 | ||||
-rw-r--r-- | mysql-test/suite/rpl/t/rpl_bug37426.test | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/r/rpl_bug37426.result b/mysql-test/suite/rpl/r/rpl_bug37426.result new file mode 100644 index 00000000000..bf96255c7b4 --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_bug37426.result @@ -0,0 +1,12 @@ +include/master-slave.inc +[connection master] +CREATE TABLE char128_utf8 (i1 INT NOT NULL, c CHAR(128) CHARACTER SET utf8 NOT NULL, i2 INT NOT NULL); +INSERT INTO char128_utf8 VALUES ( 1, "123", 1 ); +SELECT * FROM char128_utf8; +i1 c i2 +1 123 1 +SELECT * FROM char128_utf8; +i1 c i2 +1 123 1 +DROP TABLE char128_utf8; +include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_bug37426.test b/mysql-test/suite/rpl/t/rpl_bug37426.test new file mode 100644 index 00000000000..d0a60524fef --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_bug37426.test @@ -0,0 +1,22 @@ +############################################################# +# Purpose: Test for BUG#37426 +# RBR breaks for CHAR() UTF8 fields > 85 chars +############################################################# + +source include/master-slave.inc; +source include/have_binlog_format_row.inc; + +connection master; +CREATE TABLE char128_utf8 (i1 INT NOT NULL, c CHAR(128) CHARACTER SET utf8 NOT NULL, i2 INT NOT NULL); +INSERT INTO char128_utf8 VALUES ( 1, "123", 1 ); + +SELECT * FROM char128_utf8; +sync_slave_with_master; + +SELECT * FROM char128_utf8; + +# Clean up +connection master; +DROP TABLE char128_utf8; +sync_slave_with_master; +--source include/rpl_end.inc |