Bug #84413 "--" comments not recognized despite being selected in preferences
Submitted: 4 Jan 2017 21:19 Modified: 4 Jan 2017 23:46
Reporter: Michael Beyer Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:6.3 CE OS:Windows (7)
Assigned to: CPU Architecture:Any
Tags: comments

[4 Jan 2017 21:19] Michael Beyer
Description:
typing '--' does not tell editor that a comment is to follow
'#' works fine.

How to repeat:
type '--' after a SQL statement.

E.g.,

--test
SELECT * FROM sakila.actor LIMIT 100;
[4 Jan 2017 23:46] MySQL Verification Team
Thank you for the bug report. To be parsed as comment use -- test instead of --test. The command line client show you the difference too:

mysql 5.7 > --test
    -> \c
mysql 5.7 > -- test
mysql 5.7 >