summaryrefslogtreecommitdiff
path: root/sql/log.h
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
commitf62fc8191b88f5ecff01a898681f34be12215dab (patch)
tree5c628fcd13c32d98c2f02c80e598dda37aa2eb97 /sql/log.h
parentfa6e8ab0b6029e54cb5e368795a134819e0352c8 (diff)
downloadmariadb-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.h9
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();
};