SQL Prompt Formatting Off not applying to a VALUES construct
a.higgins
Posts: 90 Bronze 2
Using the new switch 'SQL Prompt Formatting Off' to keep a list of attributes in a VALUES constructor from being formatted, I noticed that the comments I'd placed between statements are being moved to the preceding line, and the comma is being placed on a new line.
Original query:
Formatted query:
Original query:
SELECT y FROM (VALUES -- SQL Prompt Formatting Off -- Thing 1 (1), -- Thing 2 (2) -- SQL Prompt Formatting On ) AS x(y)
Formatted query:
SELECT x.y FROM ( VALUES -- SQL Prompt Formatting Off -- Thing 1 (1)-- Thing 2 , (2) -- SQL Prompt Formatting On ) AS x (y)
Comments
We can reproduce this here, so I'll take a look into fixing it.
Thanks for your help!
Best regards,
David
We've got a fix for this which should be in the next beta release.
Best regards,
David
Sorry, bit of miscommunication, the fix should be in the latest beta release. Do let us know if it solves your issue.
Best regards,
David