From ad68064ce2e032ab7b3fbc788820c7e9d3e21925 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 19 Aug 2003 15:46:47 +0200 Subject: Fix for BUG#1096 which is: "mysqlbinlog does not comment the original LOAD DATA INFILE if it has a "use xx"" client/mysqlbinlog.cc: a comment sql/log_event.cc: in mysqlbinlog we want to have a leading '#' before LOAD DATA INFILE when we print a Create_file event. This was not done properly when the query had *2* lines: only the "use db" got commented. To fix this I had to add an argument to Load_log_event::print, it could not be handled in Create_file_log_event::print alone. sql/log_event.h: prototype --- sql/log_event.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/log_event.h') diff --git a/sql/log_event.h b/sql/log_event.h index 155da07bebd..1031b940528 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -435,6 +435,7 @@ public: bool use_rli_only_for_errors); #else void print(FILE* file, bool short_form = 0, char* last_db = 0); + void print(FILE* file, bool short_form, char* last_db, bool commented); #endif Load_log_event(const char* buf, int event_len, bool old_format); -- cgit v1.2.1