Commit 6b5c9851 authored by vva@eagle.mysql.r18.ru's avatar vva@eagle.mysql.r18.ru

Merge vvagin@bk-internal.mysql.com:/home/bk/mysql-3.23

into eagle.mysql.r18.ru:/home/vva/work/LOADDATA/mysql-3.23
parents cf99d899 4ae8af4a
...@@ -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