Removal Of Comments from .sql files

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
mysqluser007
Posts: 4
Joined: Tue 10 Feb 2015 20:17

Removal Of Comments from .sql files

Post by mysqluser007 » Tue 10 Feb 2015 20:26

Comments are being removed from my SQL code. This seems to be caused by adding the comment in the 'Text' tab, then making a change in the 'Query Builder' tab.

For instance, If I have the following code:

SELECT
Users.id,
Users.user_name,
User_Role.Role_id
FROM Users
LEFT OUTER JOIN User_Role
ON Users.id = User_Role.User_id

Lets say I add /* Comment */ in the 'Text' tab, resulting in

SELECT
/*comment*/
Users.id,
Users.user_name,
User_Role.Role_id
FROM Users
LEFT OUTER JOIN User_Role
ON Users.id = User_Role.User_id

The code executes fine, saves fine, and the comment is there if I close and re-open the .sql file without making any changes in the 'Query Builder' tab.

But-if I go into the 'Query Builder' tab, and for instance change the left join to a inner join, the comment disappears when I switch back to the 'Text' tab.

alexa

Re: Removal Of Comments from .sql files

Post by alexa » Wed 11 Feb 2015 10:56

We were able to reproduce this issue and will fix it in one of the next product builds. We will notify you once it's available for downloading.

mysqluser007
Posts: 4
Joined: Tue 10 Feb 2015 20:17

Re: Removal Of Comments from .sql files

Post by mysqluser007 » Wed 03 Jun 2015 12:58

Has this issue been fixed in standard edition 3.3.30? Seems to still occur.

alexa

Re: Removal Of Comments from .sql files

Post by alexa » Wed 03 Jun 2015 13:20

This issue is still to be fixed.

jmustac
Posts: 2
Joined: Sat 16 Jul 2016 02:28

Re: Removal Of Comments from .sql files

Post by jmustac » Wed 13 Mar 2019 05:29

Is this issue fixed? It still seems to be a problem in v 5.7.31 for SQL Server. Any view on the timing of fixing this or a workaround - its a real pain.

alexa

Re: Removal Of Comments from .sql files

Post by alexa » Wed 13 Mar 2019 10:11

This forum topic was related to dbForge Studio for MySQL.

In case you are referring to another our product dbForge Studio for SQL Server, please create a new topic at dbForge for SQL Server forum viewforum.php?f=33

Alternatively, you can contact support at supportATdevartDOTcom.

Chris79tr
Posts: 1
Joined: Fri 03 Jun 2022 04:36

Re: Removal Of Comments from .sql files

Post by Chris79tr » Fri 03 Jun 2022 04:53

I also had this problem,uno online and the error is still not fixed tunnel rush

dzhanhira
Devart Team
Posts: 239
Joined: Mon 26 Oct 2020 13:49

Re: Removal Of Comments from .sql files

Post by dzhanhira » Thu 09 Jun 2022 07:32

Kindly be informed that it's not fixed yet, but we have successfully reproduced it and we are going to fix it in one of the next versions.

Post Reply