mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
e8116aebdf
into pilot.(none):/data/msvensson/mysql/bug28369/my51-bug28369 mysql-test/include/master-slave.inc: Auto merged mysql-test/t/innodb.test: Auto merged mysql-test/t/mysqlbinlog-cp932.test: Auto merged mysql-test/t/mysqlbinlog.test: Auto merged mysql-test/t/mysqldump.test: Auto merged mysql-test/t/rpl_rotate_logs.test: Auto merged mysql-test/t/sp_trans.test: Auto merged mysql-test/extra/binlog_tests/blackhole.test: Auto merged mysql-test/extra/binlog_tests/ctype_cp932_binlog.test: Auto merged mysql-test/extra/binlog_tests/ctype_ucs_binlog.test: Auto merged mysql-test/extra/binlog_tests/drop_temp_table.test: Auto merged mysql-test/extra/binlog_tests/insert_select-binlog.test: Auto merged mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test: Auto merged BitKeeper/deleted/.del-sp_trans_log.test: Delete: mysql-test/t/sp_trans_log.test BitKeeper/deleted/.del-sp_trans_log.result: Delete: mysql-test/r/sp_trans_log.result BitKeeper/deleted/.del-ctype_cp932_notembedded.result~f8bc6ad0446e82e3: SCCS merged BitKeeper/deleted/.del-ctype_cp932_notembedded.test~3047e508460cef42: SCCS merged mysql-test/extra/binlog_tests/binlog.test: Merge 5.0->5.1 mysql-test/lib/mtr_cases.pl: Merge 5.0->5.1 mysql-test/r/sp_trans.result: Merge 5.0->5.1 mysql-test/t/mysqlbinlog2.test: Merge 5.0->5.1 mysql-test/t/rpl000017.test: Merge 5.0->5.1 mysql-test/t/rpl_000015.test: Merge 5.0->5.1 mysql-test/t/user_var-binlog.test: Merge 5.0->5.1
24 lines
937 B
Text
24 lines
937 B
Text
# disabled in embedded until tools running is fixed with embedded
|
|
--source include/not_embedded.inc
|
|
|
|
-- source include/have_binlog_format_mixed_or_statement.inc
|
|
-- source include/have_cp932.inc
|
|
-- source include/have_log_bin.inc
|
|
|
|
# Bug#16217 (mysql client did not know how not switch its internal charset)
|
|
flush logs;
|
|
create table t3 (f text character set utf8);
|
|
create table t4 (f text character set cp932);
|
|
--exec $MYSQL --default-character-set=utf8 test -e "insert into t3 values(_utf8'ソ')"
|
|
--exec $MYSQL --default-character-set=cp932 test -e "insert into t4 values(_cp932'ƒ\');"
|
|
flush logs;
|
|
rename table t3 to t03, t4 to t04;
|
|
--exec $MYSQL_BINLOG --short-form $MYSQLTEST_VARDIR/log/master-bin.000002 | $MYSQL --default-character-set=utf8
|
|
# original and recovered data must be equal
|
|
select HEX(f) from t03;
|
|
select HEX(f) from t3;
|
|
select HEX(f) from t04;
|
|
select HEX(f) from t4;
|
|
|
|
drop table t3, t4, t03, t04;
|
|
--echo End of 5.0 tests
|