2
# Check LOAD DATA + character sets + replication
4
source include/master-slave.inc;
7
# Bug#15126 character_set_database is not replicated
8
# (LOAD DATA INFILE need it)
11
create table t1 (a varchar(10) character set utf8);
12
load data infile '../../std_data/loaddata6.dat' into table t1;
13
set @@character_set_database=koi8r;
14
load data infile '../../std_data/loaddata6.dat' into table t1;
15
set @@character_set_database=DEFAULT;
16
load data infile '../../std_data/loaddata6.dat' into table t1;
17
load data infile '../../std_data/loaddata6.dat' into table t1;
18
load data infile '../../std_data/loaddata6.dat' into table t1;
19
set @@character_set_database=koi8r;
20
load data infile '../../std_data/loaddata6.dat' into table t1;
21
set @@character_set_database=DEFAULT;
22
load data infile '../../std_data/loaddata6.dat' into table t1 character set koi8r;
24
select hex(a) from t1;
26
sync_slave_with_master;
28
select hex(a) from t1;
31
sync_slave_with_master;
35
# When slave SQL thread executing LOAD DATA command, the
36
# thd->variables.collation_database was not set properly to the default
40
echo -------------test bug#45516------------------;
44
source include/rpl_loaddata_charset.inc;
46
# LOAD DATA LOCAL INFILE
48
source include/rpl_loaddata_charset.inc;
49
--source include/rpl_end.inc