Skip to content

Commit e77e9c5

Browse files
committed
Format sql statement (#17354)
(cherry picked from commit aa9f194)
1 parent e934a94 commit e77e9c5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SyntaxProvider/SqlServerSyntaxProviderTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,8 @@ string c(string x)
6868
}
6969

7070
Assert.AreEqual(
71-
@$"DELETE FROM {t("cmsContentNu")} WHERE {c("nodeId")} IN (SELECT {c("nodeId")} FROM (SELECT DISTINCT cmsContentNu.nodeId
72-
FROM {t("cmsContentNu")}
73-
INNER JOIN {t("umbracoNode")}
74-
ON {t("cmsContentNu")}.{c("nodeId")} = {t("umbracoNode")}.{c("id")}
75-
WHERE (({t("umbracoNode")}.{c("nodeObjectType")} = @0))) x)".Replace(Environment.NewLine, " ").Replace("\n", " ")
76-
.Replace("\r", " "),
71+
@$"DELETE FROM {t("cmsContentNu")} WHERE {c("nodeId")} IN (SELECT {c("nodeId")} FROM (SELECT DISTINCT cmsContentNu.nodeId FROM {t("cmsContentNu")} INNER JOIN {t("umbracoNode")} ON {t("cmsContentNu")}.{c("nodeId")} = {t("umbracoNode")}.{c("id")} WHERE (({t("umbracoNode")}.{c("nodeObjectType")} = @0))) x)".Replace(Environment.NewLine, " ")
72+
.Replace("\n", " ").Replace("\r", " "),
7773
sqlOutput.SQL.Replace(Environment.NewLine, " ").Replace("\n", " ").Replace("\r", " "));
7874

7975
Assert.AreEqual(1, sqlOutput.Arguments.Length);

0 commit comments

Comments
 (0)