diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2003-05-21 15:16:56 -0400 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2003-05-21 15:16:56 -0400 |
commit | bddd75d28eba0c5dade8facd7484d0ad67f20176 (patch) | |
tree | 18eceadf17cd99c3bbd2adc65d375e63b7fa01e0 /sql/log_event.cc | |
parent | 2090bc6e4347fe69189302a5b520ae3051785746 (diff) | |
download | mariadb-git-bddd75d28eba0c5dade8facd7484d0ad67f20176.tar.gz |
fixed "LINES STARTING" in load data replication
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 7c4c893a823..9cf67e78029 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -697,15 +697,19 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db) pretty_print_char(file, sql_ex.escaped); } + bool line_lexem_added= false; if(!(sql_ex.empty_flags & LINE_TERM_EMPTY)) { fprintf(file," LINES TERMINATED BY "); pretty_print_char(file, sql_ex.line_term); + line_lexem_added= true; } 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); } |