PlaceCommasBeforeNextStatement should handle correctly formatted text (#247)

- Fixed handling of PlaceCommasBeforeNextStatement so that it doesn't add whitespace unnecessarily. This ensures that repeated formats of the same text shouldn't keep adding whitespace
- Added tests covering a number of scenarios related to this
This commit is contained in:
Kevin Cunnane
2017-02-22 11:08:57 -08:00
committed by Raymond Martin
parent 7f20f84add
commit 0c0bd3125b
8 changed files with 165 additions and 59 deletions

View File

@@ -0,0 +1,10 @@
CREATE PROCEDURE [dbo].[sp1]
AS
SELECT
c1
,c2
,c3
FROM
[dbo].[T1]
RETURN 0

View File

@@ -0,0 +1,6 @@
CREATE PROCEDURE [dbo].[sp1]
AS
SELECT c1 ,c2 ,c3
FROM [dbo].[T1]
RETURN 0