diff options
author | unknown <bar@mysql.com/bar.myoffice.izhnet.ru> | 2008-02-29 17:56:50 +0400 |
---|---|---|
committer | unknown <bar@mysql.com/bar.myoffice.izhnet.ru> | 2008-02-29 17:56:50 +0400 |
commit | 1ed34fed3390e10ff67981c4470f46c6ce1e2a6e (patch) | |
tree | 383fd33306f77670825adcb8b08abae9dff732cc /mysql-test/r/log_tables.result | |
parent | 2583c281b67ae8cf470266c7438a5852a1bd2265 (diff) | |
download | mariadb-git-1ed34fed3390e10ff67981c4470f46c6ce1e2a6e.tar.gz |
Bug#23924 general_log truncates queries with character set introducers.
Problem: logging of utf8-incompatible binary strings didn't work
Fix: hex-encoding of incompatible sequences.
mysql-test/r/log_tables.result:
Adding test
mysql-test/t/log_tables.test:
Adding test
sql/field.cc:
Copying with hex escaping
sql/field.h:
New field flag
sql/log.cc:
Marking the column "general_log.argument" as hex-escaping field.
sql/sql_string.cc:
New function to copy strings with hex-encoding of incompatible characters.
sql/sql_string.h:
Prototype for the new function
Diffstat (limited to 'mysql-test/r/log_tables.result')
-rw-r--r-- | mysql-test/r/log_tables.result | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/log_tables.result b/mysql-test/r/log_tables.result index 0a7634df85a..2a4cee9fbbc 100644 --- a/mysql-test/r/log_tables.result +++ b/mysql-test/r/log_tables.result @@ -107,6 +107,17 @@ Database Table In_use Name_locked SET GLOBAL GENERAL_LOG=ON; SET GLOBAL SLOW_QUERY_LOG=ON; truncate table mysql.general_log; +set names binary; +select _koi8r'ΤΕΣΤ' as test; +test +ΤΕΣΤ +select * from mysql.general_log; +event_time user_host thread_id server_id command_type argument +TIMESTAMP USER_HOST THREAD_ID 1 Query set names binary +TIMESTAMP USER_HOST THREAD_ID 1 Query select _koi8r'\xD4\xC5\xD3\xD4' as test +TIMESTAMP USER_HOST THREAD_ID 1 Query select * from mysql.general_log +set names utf8; +truncate table mysql.general_log; set names utf8; create table bug16905 (s char(15) character set utf8 default 'ΠΏΡΡΡΠΎ'); insert into bug16905 values ('Π½ΠΎΠ²ΠΎΠ΅'); |