Bug #59807 Does not copy query from history into sql script window in some circumstances
Submitted: 28 Jan 2011 22:41 Modified: 25 May 2011 1:50
Reporter: Peter Kniaz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.31 - 7115 OS:Windows (Vista, XP)
Assigned to: CPU Architecture:Any
Tags: History append replace

[28 Jan 2011 22:41] Peter Kniaz
Description:
In the SQL Editor; show output from History.  When I select a query from today from history and right click on it, neither of the two options work: "Append selected items to SQL script" nor "Replace SQL script with selected items".  If, however, I click on one of the dates and then click on the query it works.

How to repeat:
Get into SQL Editor, show output from History.  Click on one of the items in history shown without clicking on any of the dates in the date list.
[31 Jan 2011 7:39] Valeriy Kravchuk
For me none of the history items are shown until I click on some date. So, please, describe the test case in more details.
[1 Feb 2011 18:05] Peter Kniaz
If you first do some queries in the SQL Editor and THEN get into the History, it lists the queries from that session without having to click on a date.  However, you can't copy them into your SQL Script until you click on today's date. Once you do click on a date it works from then on for that session.  Not that serious once you know the work around....
[2 Feb 2011 8:43] Valeriy Kravchuk
Verified just as described in the last comment (on Windows XP SP3).
[25 May 2011 1:50] Paul DuBois
Noted in 5.2.34 changelog.

Items from the SQL Editor history were not always available to be
copied into the SQL script.