# BUG#14157: utf8 encoding in binlog without set character_set_client
#
# BUG:
# This test only works on the MySQL-internal rpl machines.
# Needs to be fixed. Problem is that koi8r is not installed
# on many machines.
#
flushlogs;
# --exec $MYSQL --character-sets-dir=../sql/share/charsets/ --default-character-set=koi8r test -e 'create table if not exists t5 (a int); set names koi8r; create temporary table `` (a int); insert into `` values (1); insert into t5 select * from ``'
# resulted log is client charset insensitive (latin1 not koi8r) as it must be
# Switch connection to avoid killing our own connection
connectionmaster;
--disable_query_log
evalkill$con1_id;
--enable_query_log
#now do something to show that slave is ok after DROP temp tables
#now do something to show that slave is ok after DROP temp tables
connectionmaster;
connectionmaster;
...
@@ -195,4 +190,17 @@ select * from t1 /* must be 1 */;
...
@@ -195,4 +190,17 @@ select * from t1 /* must be 1 */;
connectionmaster;
connectionmaster;
droptablet1;
droptablet1;
# End of 5.1 tests
#
#14157: utf8 encoding in binlog without set character_set_client
#
--exec$MYSQL--character-sets-dir=../sql/share/charsets/--default-character-set=koi8rtest-e'create table t1 (a int); set names koi8r; create temporary table `ÑÝÉË` (a int); insert into `ÑÝÉË` values (1); insert into t1 select * from `ÑÝÉË`'