1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-25152: Insert linebreaks in mysqldump --extended-insert

Per review by Serg, include start row with new line.

We are hoping we haven't annoyed people that prefered the old
way.

Adding an option for new lines seems like over-engineering in advance.
So if there are complaints, let them be known (JIRA), and we'll add
this under an option.

Test cases updated.
This commit is contained in:
Daniel Black
2021-10-01 09:15:10 +10:00
parent 586d6a2520
commit 4930209b12
11 changed files with 181 additions and 88 deletions

View File

@ -558,7 +558,8 @@ CREATE TABLE `a1\``b1` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `a1\``b1` VALUES (1),
INSERT INTO `a1\``b1` VALUES
(1),
(2);
insert `a1\``b1` values (4),(5);
show create table `a1\``b1`;
@ -588,7 +589,8 @@ CREATE TABLE "a1\""b1" (
"a" int(11) DEFAULT NULL
);
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO "a1\""b1" VALUES (1),
INSERT INTO "a1\""b1" VALUES
(1),
(2);
insert "a1\""b1" values (4),(5);
show create table "a1\""b1";
@ -605,11 +607,11 @@ set sql_mode=default;
create table t1 (a text);
select count(*) from t1;
count(*)
42
43
truncate table t1;
select count(*) from t1;
count(*)
42
43
truncate table t1;
select count(*) from t1;
count(*)
@ -621,7 +623,7 @@ count(*)
truncate table t1;
select count(*) from t1;
count(*)
42
43
truncate table t1;
select count(*) from t1;
count(*)