diff options
author | unknown <petr@mysql.com> | 2006-02-03 13:05:14 +0300 |
---|---|---|
committer | unknown <petr@mysql.com> | 2006-02-03 13:05:14 +0300 |
commit | f62fc8191b88f5ecff01a898681f34be12215dab (patch) | |
tree | 5c628fcd13c32d98c2f02c80e598dda37aa2eb97 /sql/log.h | |
parent | fa6e8ab0b6029e54cb5e368795a134819e0352c8 (diff) | |
download | mariadb-git-f62fc8191b88f5ecff01a898681f34be12215dab.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 'sql/log.h')
-rw-r--r-- | sql/log.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/log.h b/sql/log.h index 9868fe23292..7f90737c096 100644 --- a/sql/log.h +++ b/sql/log.h @@ -368,7 +368,8 @@ public: virtual bool log_general(time_t event_time, const char *user_host, uint user_host_len, int thread_id, const char *command_type, uint command_type_len, - const char *sql_text, uint sql_text_len)= 0; + const char *sql_text, uint sql_text_len, + CHARSET_INFO *client_cs)= 0; virtual ~Log_event_handler() {} }; @@ -403,7 +404,8 @@ public: virtual bool log_general(time_t event_time, const char *user_host, uint user_host_len, int thread_id, const char *command_type, uint command_type_len, - const char *sql_text, uint sql_text_len); + const char *sql_text, uint sql_text_len, + CHARSET_INFO *client_cs); bool flush(THD *thd, TABLE_LIST *close_slow_Log, TABLE_LIST* close_general_log); void close_log_table(uint log_type, bool lock_in_use); @@ -431,7 +433,8 @@ public: virtual bool log_general(time_t event_time, const char *user_host, uint user_host_len, int thread_id, const char *command_type, uint command_type_len, - const char *sql_text, uint sql_text_len); + const char *sql_text, uint sql_text_len, + CHARSET_INFO *client_cs); void flush(); void init_pthread_objects(); }; |