summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
authorunknown <vva@eagle.mysql.r18.ru>2003-05-21 14:58:11 -0400
committerunknown <vva@eagle.mysql.r18.ru>2003-05-21 14:58:11 -0400
commit87a9e90fd0042ee06bea16e46cc7353043936b99 (patch)
treee7b022b8419a55686a18e0d6cfac16607fdf2fe3 /sql/log_event.cc
parent32592ab8c1a331f3bbd52dbd62f738ba82d29ea6 (diff)
parent530accbaae6d243885d5bcc5b04d55b61bd87ce7 (diff)
downloadmariadb-git-87a9e90fd0042ee06bea16e46cc7353043936b99.tar.gz
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.0
into eagle.mysql.r18.ru:/home/vva/work/LOADDATA/mysql-4.0 sql/log_event.cc: Auto merged
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index bbea89bfd3f..300e367e1e7 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -309,15 +309,19 @@ void Load_log_event::pack_info(String* packet)
pretty_print_str(&tmp, sql_ex.escaped, sql_ex.escaped_len);
}
+ bool line_lexem_added= false;
if (sql_ex.line_term_len)
{
tmp.append(" LINES TERMINATED BY ");
pretty_print_str(&tmp, sql_ex.line_term, sql_ex.line_term_len);
+ line_lexem_added= true;
}
if (sql_ex.line_start_len)
{
- tmp.append(" LINES STARTING BY ");
+ if (!line_lexem_added)
+ tmp.append(" LINES");
+ tmp.append(" STARTING BY ");
pretty_print_str(&tmp, sql_ex.line_start, sql_ex.line_start_len);
}
@@ -1308,15 +1312,19 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db)
pretty_print_str(file, sql_ex.escaped, sql_ex.escaped_len);
}
+ bool line_lexem_added= false;
if (sql_ex.line_term)
{
fprintf(file," LINES TERMINATED BY ");
pretty_print_str(file, sql_ex.line_term, sql_ex.line_term_len);
+ line_lexem_added= true;
}
if (sql_ex.line_start)
{
- fprintf(file," LINES STARTING BY ");
+ if (!line_lexem_added)
+ fprintf(file," LINES");
+ fprintf(file," STARTING BY ");
pretty_print_str(file, sql_ex.line_start, sql_ex.line_start_len);
}