diff options
author | cbell/Chuck@suse.vabb.com <> | 2007-01-10 13:45:41 -0500 |
---|---|---|
committer | cbell/Chuck@suse.vabb.com <> | 2007-01-10 13:45:41 -0500 |
commit | 183c67598010f177b7fcf6043dd28ff8d709fdf4 (patch) | |
tree | b6258cad704073eb9ed7afbf1a7b07a36bad31fc /sql/log_event.h | |
parent | 2c039cccb60ec4e9758938b929550056fb77840b (diff) | |
download | mariadb-git-183c67598010f177b7fcf6043dd28ff8d709fdf4.tar.gz |
BUG#22645 - LC_TIME_NAMES: Statement not replicated
This patch is an additional code change to the get_str_len_and_pointer
method in log_events.cc. This change is necessary to correct a problem
encountered on 64-bit SUSE where the auto_increment_* variables were
being overwritten. The change corrects a cast mismatch which caused
the problem.
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index a44e3476c41..9c2e7c5f7ea 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -547,6 +547,13 @@ class Log_event { public: /* + The following type definition is to be used whenever data is placed + and manipulated in a common buffer. Use this typedef for buffers + that contain data containing binary and character data. + */ + typedef unsigned char Byte; + + /* The offset in the log where this event originally appeared (it is preserved in relay logs, making SHOW SLAVE STATUS able to print coordinates of the event in the master's binlog). Note: when a @@ -719,7 +726,7 @@ public: class Query_log_event: public Log_event { protected: - char* data_buf; + Log_event::Byte* data_buf; public: const char* query; const char* catalog; |