mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
#14157: utf8 encoding in binlog without set character_set_client
fixing an issue with the test portability. mysql-test/t/mysqlbinlog.test: BUG#14157: utf8 encoding in binlog without set character_set_client fixing koi8r specific case to run on all platforms. client does not announce in cmd line any specific encoding but rather set it via `set names'.
This commit is contained in:
@ -118,10 +118,12 @@ select HEX(f) from t4;
|
|||||||
#14157: utf8 encoding in binlog without set character_set_client
|
#14157: utf8 encoding in binlog without set character_set_client
|
||||||
#
|
#
|
||||||
flush logs;
|
flush logs;
|
||||||
--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 `<60><><EFBFBD><EFBFBD>` (a int); insert into `<60><><EFBFBD><EFBFBD>` values (1); insert into t5 select * from `<60><><EFBFBD><EFBFBD>`'
|
--exec $MYSQL test -e 'create table if not exists t5 (a int); set names koi8r; create temporary table `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>` (a int); insert into `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>` values (1); insert into t5 select * from `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`'
|
||||||
|
|
||||||
# resulted log is client charset insensitive (latin1 not koi8r) as it must be
|
# resulted binlog, parly consisting of multi-byte utf8 chars,
|
||||||
--exec $MYSQL_BINLOG --short-form $MYSQL_TEST_DIR/var/log/master-bin.000006 | $MYSQL --default-character-set=latin1
|
# must be digestable for both client and server. In 4.1 the client
|
||||||
|
# should use default-character-set same as the server.
|
||||||
|
--exec $MYSQL_BINLOG --short-form $MYSQL_TEST_DIR/var/log/master-bin.000006 | $MYSQL
|
||||||
select * from t5 /* must be (1),(1) */;
|
select * from t5 /* must be (1),(1) */;
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
|
Reference in New Issue
Block a user