Define custom in-line comment designator

4 Posts
2 Users
1 Reactions
913 Views
Posts: 2
Topic starter
(@leefordss)
Member
Joined: 3 years ago
[#92]

In MySQL, we can use # to designate that anything following it should be treated as an in-line comment.  It should be treated the same as if we were using -- before our in-line comment.

I think it would be great to be able to designate our own custom in-line or block comment indicator.

 

# this is a comment
SELECT 
    a.name # this is also a comment
    ,a.number -- this is also a comment
FROM db.table a;

3 Replies
Guido
Posts: 295
Admin
(@admin)
Member
Joined: 5 years ago

Hi  @leefordss,

thanks for your feedback.

Will check if I can add this feature in the next release

Regards

Guido


Reply
Guido
Posts: 295
Admin
(@admin)
Member
Joined: 5 years ago

good news. I changed the parser and gave it a try. It works fine

grafik

Feature will go live with next Release

Thx!


Reply
1 Reply
(@leefordss)
Joined: 3 years ago

Member
Posts: 2

@admin Thank you for the quick turn around.  This will make my formatting of older scripts much easier.


Reply
Share: