fixed "LINES STARTING" in load data replication

parent e96c75fe
...@@ -35,5 +35,6 @@ serg@build.mysql2.com ...@@ -35,5 +35,6 @@ serg@build.mysql2.com
serg@serg.mysql.com serg@serg.mysql.com
serg@sergbook.mysql.com serg@sergbook.mysql.com
sinisa@rhols221.adsl.netsonic.fi sinisa@rhols221.adsl.netsonic.fi
vva@eagle.mysql.r18.ru
walrus@mysql.com walrus@mysql.com
zak@balfor.local zak@balfor.local
...@@ -697,15 +697,19 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db) ...@@ -697,15 +697,19 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db)
pretty_print_char(file, sql_ex.escaped); pretty_print_char(file, sql_ex.escaped);
} }
bool line_lexem_added= false;
if(!(sql_ex.empty_flags & LINE_TERM_EMPTY)) if(!(sql_ex.empty_flags & LINE_TERM_EMPTY))
{ {
fprintf(file," LINES TERMINATED BY "); fprintf(file," LINES TERMINATED BY ");
pretty_print_char(file, sql_ex.line_term); pretty_print_char(file, sql_ex.line_term);
line_lexem_added= true;
} }
if(!(sql_ex.empty_flags & LINE_START_EMPTY)) if(!(sql_ex.empty_flags & LINE_START_EMPTY))
{ {
fprintf(file," LINES STARTING BY "); if (!line_lexem_added)
fprintf(file," LINES");
fprintf(file," STARTING BY ");
pretty_print_char(file, sql_ex.line_start); pretty_print_char(file, sql_ex.line_start);
} }
......
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