Define custom in-line comment designator

4 Posts
2 Users
1 Likes
133 Views
(@leefordss)
Member
Joined: 5 months ago
Posts: 2
Topic starter  

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;

   
Quote
Guido
(@admin)
Member Admin
Joined: 2 years ago
Posts: 175
 

Hi  @leefordss,

thanks for your feedback.

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

Regards

Guido


   
ReplyQuote
Guido
(@admin)
Member Admin
Joined: 2 years ago
Posts: 175
 

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

grafik

Feature will go live with next Release

Thx!


   
leefordss reacted
ReplyQuote
(@leefordss)
Member
Joined: 5 months ago
Posts: 2
Topic starter  

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


   
ReplyQuote
Share: