Bug #54536 Selected text not passed to query engine
Submitted: 16 Jun 2010 0:37 Modified: 17 Jun 2010 15:00
Reporter: Gordon MacKay Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.22 OS:MacOS (10.6.4)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: selected text query

[16 Jun 2010 0:37] Gordon MacKay
Description:
selected text is not passed to query engine. When using menu command or pressing shift+command+enter, entire text window is sent to processor.

How to repeat:
Enter following text in query editor:

select * from information_schema.tables
where table_schema !='information_schema';

Select the only the first line and either use the menu or shift+command+enter to run partial statement.

Output will not include information_schema tables 
(in other words the selection of text is not respected.)

Suggested fix:
Make selected text processing funcitonal please.
[16 Jun 2010 4:31] Valeriy Kravchuk
Thank you for the problem report. Verified just as described.
[16 Jun 2010 13:18] Alfredo Kojima
fixed
[16 Jun 2010 19:51] Johannes Taxacher
fix confirmed in repository
[17 Jun 2010 15:00] Tony Bedford
An entry has been added to the 5.2.23 changelog:

In the SQL Editor, when an attempt was made to execute a selection in the SQL Query tab, all text was executed, not just the selected text.