Comma will be moved to the end of the comment line (カンマがコメント行の末尾に移動します)

SELECT
column1,
column2
-- comment
,
column3
FROM
table1

When the auto format of the above SQL, a comma of "column3" would go to the end of the "comment".
This is desirable to move to the back of this case, "column2".

( "New line before> Comma (in select items)" has set without checking.)

 

上記のSQLをオートフォーマットすると、"column3"のカンマが"comment"の末尾に移動してしまう。
この場合は"column2"の後ろに移動するのが望ましいです。

("New line before > Comma (in select items)"はチェックしないで設定しています。)

2 comments

Hello Ota Ichiro,

Thank you for reporting! Created the issue in YouTrack, feel free to follow for updates: https://youtrack.jetbrains.com/issue/DBE-2511

0

Please sign in to leave a comment.