Bug #38578 Improper comments highlightning
Submitted: 5 Aug 2008 16:46 Modified: 26 May 2009 13:18
Reporter: Federico Razzoli (OCA) Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.2.12 OS:Linux
Assigned to: CPU Architecture:Any

[5 Aug 2008 16:46] Federico Razzoli
Description:
If you use -- or /* ... */ for comments, and you don't leave a space before -- or /*, the query works properly, but MySQL Query Browser highlights the comments improperly. In the first case (--) comment is not highlighted at all. In the second case (/* */) the word before /* is highlighted as if it was part of the comment.

This doesn't happen if the word before the comment is a 'string' or a function()

How to repeat:
First case:
SELECT 1-- my comments
SELECT * FROM mysql.db-- my comments

Second case:
SELECT 1/* my comments */
SELECT * FROM mysql.db/* my comments */
[5 Aug 2008 16:49] Federico Razzoli
Bug demo with --

Attachment: 1.png (image/png, text), 74.07 KiB.

[5 Aug 2008 16:50] Federico Razzoli
Bug demo with /* */

Attachment: 2.png (image/png, text), 73.13 KiB.

[5 Aug 2008 17:08] MySQL Verification Team
Thank you for the bug report.
[26 May 2009 13:18] Susanne Ebrecht
Many thanks for writing a bug report. We are on the way to implement full functionality of MySQL Query Browser into MySQL Workbench. Unfortunately you are using an unsupported platform. More informations about supported platforms you will find here:

http://www.mysql.com/support/supportedplatforms/tools.html

More informations about MySQL Workbench you will find here:

http://dev.mysql.com/workbench/