Skip to content

Cleanup: Extra line 🔥 #19519

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jan 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EFCore.Relational/Query/QuerySqlGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ protected override Expression VisitIn(InExpression inExpression)
Visit(inExpression.Subquery);
}

_relationalCommandBuilder.AppendLine().AppendLine(")");
_relationalCommandBuilder.AppendLine().Append(")");
}

return inExpression;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,7 @@ SELECT CASE
WHEN @__p_0 IN (
SELECT [c].[CustomerID]
FROM [Customers] AS [c]
)
THEN CAST(1 AS bit)
) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END");
}
Expand Down Expand Up @@ -1084,8 +1083,7 @@ WHEN @__entity_equality_p_0_OrderID IN (
SELECT [o].[OrderID]
FROM [Orders] AS [o]
WHERE [o].[CustomerID] = N'VINET'
)
THEN CAST(1 AS bit)
) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END");
}
Expand Down Expand Up @@ -1178,8 +1176,7 @@ WHEN @__entity_equality_p_0_OrderID IN (
SELECT [o].[OrderID]
FROM [Orders] AS [o]
WHERE [o].[CustomerID] = N'VINET'
)
THEN CAST(1 AS bit)
) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1563,8 +1563,7 @@ WHERE [o].[ProductID] IN (
SELECT TOP(1) [p].[ProductID]
FROM [Products] AS [p]
ORDER BY [p].[ProductID]
)
OR [o].[OrderID] IN (
) OR [o].[OrderID] IN (
SELECT TOP(1) [o0].[OrderID]
FROM [Orders] AS [o0]
ORDER BY [o0].[OrderID]
Expand All @@ -1582,8 +1581,7 @@ WHERE [o].[ProductID] IN (
SELECT TOP(20) [p].[ProductID]
FROM [Products] AS [p]
ORDER BY [p].[ProductID]
)
AND [o].[OrderID] IN (
) AND [o].[OrderID] IN (
SELECT TOP(10) [o0].[OrderID]
FROM [Orders] AS [o0]
ORDER BY [o0].[OrderID]
Expand All @@ -1604,8 +1602,7 @@ WHERE [o].[OrderID] IN (
SELECT [o0].[OrderID]
FROM [Orders] AS [o0]
WHERE [c].[CustomerID] = [o0].[CustomerID]
)
)");
))");
}

public override async Task Where_subquery_FirstOrDefault_is_null(bool async)
Expand Down Expand Up @@ -1793,7 +1790,6 @@ SELECT [o0].[CustomerID]
FROM [Orders] AS [o0]
WHERE [o0].[CustomerID] = [c].[CustomerID]
)

ORDER BY [c].[CustomerID], [o].[OrderID]");
}

Expand Down Expand Up @@ -1825,7 +1821,6 @@ SELECT [o0].[CustomerID]
FROM [Orders] AS [o0]
WHERE [o0].[CustomerID] = [c].[CustomerID]
)

ORDER BY [c].[CustomerID], [o].[OrderID]");
}

Expand Down Expand Up @@ -1857,7 +1852,6 @@ SELECT [o0].[CustomerID]
FROM [Orders] AS [o0]
WHERE [o0].[CustomerID] = [c].[CustomerID]
)

ORDER BY [c].[CustomerID], [o].[OrderID]");
}

Expand Down Expand Up @@ -1913,7 +1907,6 @@ SELECT [o0].[OrderID]
FROM [Orders] AS [o0]
WHERE [c].[CustomerID] = [o0].[CustomerID]
)

ORDER BY [c].[CustomerID], [o].[OrderID]");
}

Expand Down Expand Up @@ -1969,7 +1962,6 @@ SELECT [o0].[OrderID]
FROM [Orders] AS [o0]
WHERE [c].[CustomerID] = [o0].[CustomerID]
)

ORDER BY [c].[CustomerID], [o].[OrderID]");
}

Expand Down