mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 23:05:32 +02:00
BUG#45516 SQL thread does not use database charset properly
Replication SQL thread does not set database default charset to
thd->variables.collation_database properly, when executing LOAD DATA binlog.
This bug can be repeated by using "LOAD DATA" command in STATEMENT mode.
This patch adds code to find the default character set of the current database
then assign it to thd->db_charset when slave server begins to execute a relay log.
The test of this bug is added into rpl_loaddata_charset.test
This commit is contained in:
parent
d33a57a694
commit
0d821fafe9
5 changed files with 106 additions and 0 deletions
3
mysql-test/std_data/loaddata_utf8.dat
Normal file
3
mysql-test/std_data/loaddata_utf8.dat
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
一二三
|
||||
四五六
|
||||
七八九
|
||||
Loading…
Add table
Add a link
Reference in a new issue