diff options
author | rmfalves <rmfalves@gmail.com> | 2021-06-06 15:09:36 +0100 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-10-01 09:18:50 +1000 |
commit | 586d6a2520de23d8e5a3cc6ccfd29dbd728dba69 (patch) | |
tree | 755e9f33f5d81845883c22e0195936f4becc0faf /client | |
parent | b36d6f92a865e519271925f68802d599e62cf26c (diff) | |
download | mariadb-git-586d6a2520de23d8e5a3cc6ccfd29dbd728dba69.tar.gz |
MDEV-25152 Insert linebreaks in mysqldump --extended-insert
Currently, mysqldump --extended-insert outputs all rows on a single line,
which makes it difficult to use with various Unix command-line utilities
such as grep and diff.
We change mysqldump to emit a linebreak between each row, that would make
it easier to work with, without significantly affecting dump or restore
performance, or affecting compatibility.
Closes: #1865
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index f255e8295c6..c593af71ad9 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -4487,7 +4487,7 @@ static void dump_table(const char *table, const char *db, const uchar *hash_key, if (total_length + row_length < opt_net_buffer_length) { total_length+= row_length; - fputc(',',md_result_file); /* Always row break */ + fputs(",\n",md_result_file); /* Always row break */ fputs(extended_row.str,md_result_file); } else |