Bug #74409 Mysql workbench - GUI buttons for execute highlighted and execute all are wrong
Submitted: 15 Oct 2014 21:21 Modified: 15 Oct 2014 21:29
Reporter: David Santos Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:6.0.8.11354 community OS:Linux (Ubuntu 14.04)
Assigned to: CPU Architecture:Any
Tags: workbench

[15 Oct 2014 21:21] David Santos
Description:
On mysql Workbench, on the query editor window, on the buttons at the top where you can see icons to: 

Open script
Save Script
Run query
Run only Highlighted
Stop the query...

The button for Run Query (the lightning bolt) and the button for Run Highlighted (lightning bolt with cursor) are backwards. 

The lightning bolt button runs only highlighted, and the lightning-bolt-cursor runs the entire script. (should be other way around)

It seems like the keyboard shortcuts are backwards as well. Ctrl+Enter runs entire query, and ctrl+shift+enter runs highlighted only. According to your documentation http://dev.mysql.com/doc/workbench/en/wb-keys.html it should be that Modifier+Return executes statement and Modifier+Shift+Return runs statements (many). Thanks

How to repeat:
Open mysql workbench 6.0.8.11354
make a connection to a database
write 2 separate queries. 
highlight only one of them. 
ctrl+enter to run only that one query highlighted. 
mysql workbench will run both, instead of the one you wanted. 

Suggested fix:
flip the functionality of the buttons.
[15 Oct 2014 21:26] David Santos
NEVERMIND. This is working as expected - You can delete this bug. I feel like a derp.
[15 Oct 2014 21:29] David Santos
This is not a bug. I did not understand the functionality of the buttons.