summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlbinlog-cp932.test
diff options
context:
space:
mode:
author <Li-Bing.Song@sun.com>2009-09-07 13:42:54 +0800
committer <Li-Bing.Song@sun.com>2009-09-07 13:42:54 +0800
commita7ba25f72b67b6e4b45cd44c17d67f9114fd9c5a (patch)
tree40b0da91080e324f6b13d3fddcfef6daf55e998b /mysql-test/t/mysqlbinlog-cp932.test
parentc21168f37ae116c4c075ec55fce5c5854e96129d (diff)
downloadmariadb-git-a7ba25f72b67b6e4b45cd44c17d67f9114fd9c5a.tar.gz
Bug#46010 main.ctype_gbk_binlog fails sporadically : Table 't2' already exists
This test case uses mysqlbinlog to dump the content of master-bin.000001, but the content of master-bin.000001 is not that this test needs. MTR runs a lot of test cases on one server, so when this test starts, the current binlog file might not be master-bin.000001, or there are other events are written by tests before. 'RESET MASTER' command must be called at the begin, it ensures that binlog of this test is wrote to master-bin.000001 correctly. Three other tests have the same problem, They were fixed together. mysqlbinlog-cp932 binlog_incident binlog_tmp_table
Diffstat (limited to 'mysql-test/t/mysqlbinlog-cp932.test')
-rw-r--r--mysql-test/t/mysqlbinlog-cp932.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/t/mysqlbinlog-cp932.test b/mysql-test/t/mysqlbinlog-cp932.test
index a7055bfc8ca..2a210bea0e0 100644
--- a/mysql-test/t/mysqlbinlog-cp932.test
+++ b/mysql-test/t/mysqlbinlog-cp932.test
@@ -5,8 +5,9 @@
-- source include/have_cp932.inc
-- source include/have_log_bin.inc
+RESET MASTER;
+
# 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'ソ')"
@@ -14,7 +15,7 @@ create table t4 (f text character set cp932);
flush logs;
rename table t3 to t03, t4 to t04;
let $MYSQLD_DATADIR= `select @@datadir`;
---exec $MYSQL_BINLOG --short-form $MYSQLD_DATADIR/master-bin.000002 | $MYSQL --default-character-set=utf8
+--exec $MYSQL_BINLOG --short-form $MYSQLD_DATADIR/master-bin.000001 | $MYSQL --default-character-set=utf8
# original and recovered data must be equal
select HEX(f) from t03;
select HEX(f) from t3;