Bug #62511 Can't execute query with comments
Submitted: 23 Sep 2011 9:38 Modified: 10 Oct 2011 4:27
Reporter: Ilya Cheburaev Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.34 CE Rev 7780 OS:Any (XP, Mac OS X)
Assigned to: CPU Architecture:Any
Tags: CTRL + ENTER, query execute

[23 Sep 2011 9:38] Ilya Cheburaev
Description:
Can't execute query with CTRL+ENTER if first row is comment and cursor in this comment line (on other comment lines - after query - everything is ok)

How to repeat:
Put cursor before " 11"

in query:
-- ll
select a from a;
-- sd;lk
[23 Sep 2011 10:35] Valeriy Kravchuk
Thank you for the bug report. Verified just as described with 5.2.35 on Mac OS X also.
[10 Oct 2011 4:27] Alfredo Kojima
This is not a bug.
Ctrl+Enter is execute current statement. If cursor is in a comment, current statement would the comment.
If you want the whole script to be executed, use Ctrl+Shift+Enter