mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Use a temporary file to execute SQL commands with utf-8 chararcters
This commit is contained in:
@ -192,7 +192,14 @@ drop table t1;
|
|||||||
#
|
#
|
||||||
#14157: utf8 encoding in binlog without set character_set_client
|
#14157: utf8 encoding in binlog without set character_set_client
|
||||||
#
|
#
|
||||||
--exec $MYSQL --character-sets-dir=../sql/share/charsets/ --default-character-set=latin1 test -e 'create table t1 (a int); set names latin1; create temporary table `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>` (a int); insert into `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>` values (1); insert into t1 select * from `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`'
|
--write_file $MYSQLTEST_VARDIR/tmp/bug14157.sql
|
||||||
|
create table t1 (a int);
|
||||||
|
set names latin1;
|
||||||
|
create temporary table `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>` (a int);
|
||||||
|
insert into `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>` values (1);
|
||||||
|
insert into t1 select * from `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`
|
||||||
|
EOF
|
||||||
|
--exec $MYSQL --character-sets-dir=../sql/share/charsets/ --default-character-set=latin1 test < $MYSQLTEST_VARDIR/tmp/bug14157.sql
|
||||||
|
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
#connection slave;
|
#connection slave;
|
||||||
|
Reference in New Issue
Block a user