mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
ef02cb6305
when merging into 5.1. mysql-test/t/rpl_loaddata_charset.test: Rename: mysql-test/t/rpl_loaddata2.test -> mysql-test/t/rpl_loaddata_charset.test mysql-test/r/rpl_loaddata_charset.result: Rename: mysql-test/r/rpl_loaddata2.result -> mysql-test/r/rpl_loaddata_charset.result
33 lines
1,013 B
Text
33 lines
1,013 B
Text
#
|
|
# Check LOAD DATA + character sets + replication
|
|
#
|
|
source include/master-slave.inc;
|
|
|
|
#
|
|
# Bug#15126 character_set_database is not replicated
|
|
# (LOAD DATA INFILE need it)
|
|
#
|
|
connection master;
|
|
create table t1 (a varchar(10) character set utf8);
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1;
|
|
set @@character_set_database=koi8r;
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1;
|
|
set @@character_set_database=DEFAULT;
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1;
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1;
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1;
|
|
set @@character_set_database=koi8r;
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1;
|
|
set @@character_set_database=DEFAULT;
|
|
load data infile '../std_data_ln/loaddata6.dat' into table t1 character set koi8r;
|
|
|
|
select hex(a) from t1;
|
|
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
|
|
select hex(a) from t1;
|
|
connection master;
|
|
drop table t1;
|
|
sync_slave_with_master;
|