diff options
author | He Zhenxing <hezx@mysql.com> | 2008-09-29 13:36:42 +0800 |
---|---|---|
committer | He Zhenxing <hezx@mysql.com> | 2008-09-29 13:36:42 +0800 |
commit | 08399602a61dc9561773e178b8eabfb99b1ce945 (patch) | |
tree | a27abb93f3230471a50776153cbbc023939e1e41 /sql/log_event.h | |
parent | bd35cfe22ea396cafd332a79ca5dd810c1b6c769 (diff) | |
parent | 853880910c2df756decbbca221516c9c731176e4 (diff) | |
download | mariadb-git-08399602a61dc9561773e178b8eabfb99b1ce945.tar.gz |
Auto Merge
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 2ee0bf7e51d..f131aba515a 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -34,6 +34,14 @@ #include <my_bitmap.h> #include "rpl_constants.h" + +#ifdef MYSQL_CLIENT +#include "rpl_utility.h" +#include "hash.h" +#include "rpl_tblmap.h" +#include "rpl_tblmap.cc" +#endif + #ifndef MYSQL_CLIENT #include "rpl_record.h" #include "rpl_reporting.h" @@ -596,6 +604,7 @@ enum enum_base64_output_mode { BASE64_OUTPUT_AUTO= 1, BASE64_OUTPUT_ALWAYS= 2, BASE64_OUTPUT_UNSPEC= 3, + BASE64_OUTPUT_DECODE_ROWS= 4, /* insert new output modes here */ BASE64_OUTPUT_MODE_COUNT }; @@ -658,6 +667,11 @@ typedef struct st_print_event_info uint8 common_header_len; char delimiter[16]; +#ifdef MYSQL_CLIENT + uint verbose; + table_mapping m_table_map; +#endif + /* These two caches are used by the row-based replication events to collect the header information and the main body of the events @@ -3280,6 +3294,17 @@ public: ~Table_map_log_event(); +#ifdef MYSQL_CLIENT + table_def *create_table_def() + { + return new table_def(m_coltype, m_colcnt, m_field_metadata, + m_field_metadata_size, m_null_bits); + } + ulong get_table_id() const { return m_table_id; } + const char *get_table_name() const { return m_tblnam; } + const char *get_db_name() const { return m_dbnam; } +#endif + virtual Log_event_type get_type_code() { return TABLE_MAP_EVENT; } virtual bool is_valid() const { return m_memory != NULL; /* we check malloc */ } @@ -3410,6 +3435,12 @@ public: #ifdef MYSQL_CLIENT /* not for direct call, each derived has its own ::print() */ virtual void print(FILE *file, PRINT_EVENT_INFO *print_event_info)= 0; + void print_verbose(IO_CACHE *file, + PRINT_EVENT_INFO *print_event_info); + size_t print_verbose_one_row(IO_CACHE *file, table_def *td, + PRINT_EVENT_INFO *print_event_info, + MY_BITMAP *cols_bitmap, + const uchar *ptr, const uchar *prefix); #endif #ifndef MYSQL_CLIENT |