summaryrefslogtreecommitdiff
path: root/mysql-test/t/log_tables.test
diff options
context:
space:
mode:
authorunknown <petr@mysql.com>2006-02-03 13:05:14 +0300
committerunknown <petr@mysql.com>2006-02-03 13:05:14 +0300
commitc0b31dc2f027d51d919051528a5c57509de97087 (patch)
tree5c628fcd13c32d98c2f02c80e598dda37aa2eb97 /mysql-test/t/log_tables.test
parent93985f253a6a5b951ef0d775718a7453ebc38ea5 (diff)
downloadmariadb-git-c0b31dc2f027d51d919051528a5c57509de97087.tar.gz
Fix for Bug#16905 Log tables: unicode statements are logged incorrectly
mysql-test/r/log_tables.result: update result mysql-test/t/log_tables.test: add a testcase sql/log.cc: take into account client charset info, while logging into a table. sql/log.h: pass the charset info along with the log messages to log them correctly
Diffstat (limited to 'mysql-test/t/log_tables.test')
-rw-r--r--mysql-test/t/log_tables.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/log_tables.test b/mysql-test/t/log_tables.test
index 794beaa2a4d..bc5f7f8891a 100644
--- a/mysql-test/t/log_tables.test
+++ b/mysql-test/t/log_tables.test
@@ -144,7 +144,25 @@ reap;
select "Mark that we woke up from TRUNCATE in the test"
as "test passed";
+connection con1;
+
disconnect con2;
+
+use test;
+
+#
+# Bug #16905 Log tables: unicode statements are logged incorrectly
+#
+
+truncate table mysql.general_log;
+set names utf8;
+create table bug16905 (s char(15) character set utf8 default 'пусто');
+insert into bug16905 values ('новое');
+--replace_column 1 TIMESTAMP
+select * from mysql.general_log;
+drop table bug16905;
+
+
disconnect con1;
--enable_ps_protocol