Hi, wrong formatting. If you remove comment, then it formats good. I've just updated 6.6.0.180 but it was the same with 2 months earlier version
SELECT	1
FROM	a
		CROSS APPLY (
						-- IMPORTANT COMMENT THAT BREAK FORMATTING
		SELECT	1
						UNION ALL
						SELECT	1
					) a;
sdks
0

Comments

3 comments

  • David Priddle
    Hi sdks,

    We've got a UserVoice suggestion to improve our formatting system with regards to comments. We've started looking into it and if you vote on this feature you'll get updates when they're available.

    Best regards,

    David
    David Priddle
    0
  • sdks
    It's a bit different. In the uservoice it is stated "after the rest of my code is formatted". In this case UNION ALL section is wrongly formatted. It might be related.
    sdks
    0
  • David Priddle
    Hi sdks,

    Thanks for this. We think it might be related too. We'll make a note to look into it when we're working on the UserVoice request.

    Best regards,

    David
    David Priddle
    0

Add comment

Please sign in to leave a comment.