Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 6e4673d

Browse files
committed
normalize SqlExpression by collapsing new lines
1 parent e334c29 commit 6e4673d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ServiceStack.OrmLite.Tests/TestHelpers.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ public static class TestHelpers
1414
{
1515
public static string NormalizeSql(this string sql)
1616
{
17-
return sql.ToLower().Replace("\"", "").Replace("`", "").Replace("_","");
17+
return sql.ToLower()
18+
.Replace("\"", "")
19+
.Replace("`", "")
20+
.Replace("_","")
21+
.Replace("\n", " ");
1822
}
1923
}
2024
}

0 commit comments

Comments
 (0)