Commit 37fdb93d authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

Gluh asked me to do it

parent c7485119
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#undef MYSQL_SERVER #undef MYSQL_SERVER
#include "client_priv.h" #include "client_priv.h"
#include <time.h> #include <time.h>
#include <assert.h>
#include "log_event.h" #include "log_event.h"
#define BIN_LOG_HEADER_SIZE 4 #define BIN_LOG_HEADER_SIZE 4
......
...@@ -1999,7 +1999,7 @@ int Rand_log_event::exec_event(struct st_relay_log_info* rli) ...@@ -1999,7 +1999,7 @@ int Rand_log_event::exec_event(struct st_relay_log_info* rli)
User_var_log_event::pack_info() User_var_log_event::pack_info()
****************************************************************************/ ****************************************************************************/
#ifndef MYSQL_CLIENT #if defined(HAVE_REPLICATION) && !defined(MYSQL_CLIENT)
void User_var_log_event::pack_info(Protocol* protocol) void User_var_log_event::pack_info(Protocol* protocol)
{ {
char *buf= 0; char *buf= 0;
...@@ -2112,9 +2112,7 @@ int User_var_log_event::write_data(IO_CACHE* file) ...@@ -2112,9 +2112,7 @@ int User_var_log_event::write_data(IO_CACHE* file)
pos= val; pos= val;
break; break;
case ROW_RESULT: case ROW_RESULT:
#ifndef MYSQL_CLIENT
DBUG_ASSERT(1); DBUG_ASSERT(1);
#endif
return 0; return 0;
} }
return (my_b_safe_write(file, (byte*) buf, sizeof(buf)) || return (my_b_safe_write(file, (byte*) buf, sizeof(buf)) ||
...@@ -2166,6 +2164,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db) ...@@ -2166,6 +2164,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db)
fprintf(file, ":='%s';\n", val); fprintf(file, ":='%s';\n", val);
break; break;
case ROW_RESULT: case ROW_RESULT:
DBUG_ASSERT(1);
return; return;
} }
} }
...@@ -2178,7 +2177,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db) ...@@ -2178,7 +2177,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db)
User_var_log_event::exec_event() User_var_log_event::exec_event()
****************************************************************************/ ****************************************************************************/
#ifndef MYSQL_CLIENT #if defined(HAVE_REPLICATION) && !defined(MYSQL_CLIENT)
int User_var_log_event::exec_event(struct st_relay_log_info* rli) int User_var_log_event::exec_event(struct st_relay_log_info* rli)
{ {
Item *it= 0; Item *it= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment