--sourceinclude/have_cp932.inc# Bug#16217 (mysql client did not know how not switch its internal charset)flushlogs;createtablet3(ftextcharactersetutf8);createtablet4(ftextcharactersetcp932);--exec$MYSQL--default-character-set=utf8test-e"insert into t3 values(_utf8'ソ')"--exec$MYSQL--default-character-set=cp932test-e"insert into t4 values(_cp932'\');"flushlogs;renametablet3tot03,t4tot04;--exec$MYSQL_BINLOG--short-form$MYSQLTEST_VARDIR/log/master-bin.000002|$MYSQL--default-character-set=utf8# original and recovered data must be equalselectHEX(f)fromt03;selectHEX(f)fromt3;selectHEX(f)fromt04;selectHEX(f)fromt4;droptablet3,t4,t03,t04;--echoEndof5.0tests