Bug #64818 Incorrect functionality of Replace All button in Find and Replace
Submitted: 30 Mar 2012 16:23 Modified: 24 Jul 2012 0:36
Reporter: D N Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.38, 5.2.40 OS:Windows (7, XP)
Assigned to: CPU Architecture:Any

[30 Mar 2012 16:23] D N
Description:
In "Find and Replace" window dialog, Replace tab, button Replace All doesn't replace anything, if field "Replace" is empty. In the same time button "Replace Next" works correct.

How to repeat:
Type in query editor "test".
Open "Find and Replace" window on Replace tab.
Write into editbox "Find" text "ex".
Leave editbox Replace empty.
Press button "Replace All".
No replacements will occur.
[30 Mar 2012 16:45] Valeriy Kravchuk
Thank you for the problem report. Please, check if the same problem still happens with a newer version, 5.2.38.
[30 Mar 2012 17:05] D N
Problem is reproduced on last (5.2.38 CE revision 8753) version of Workbench, too.
[30 Mar 2012 17:22] Valeriy Kravchuk
You probably meant "es", not "ex"... Anyway, verified with 5.2.38 on Windows XP. My initial test was on Mac OS X that is not affected by this bug.
[17 Jul 2012 17:33] Valeriy Kravchuk
Bug #65925 was marked as a duplicate of this one.
[24 Jul 2012 0:36] Philip Olson
This has been fixed as of the soon-to-be-released Workbench 5.2.41, and 
here's the changelog entry:

The "Replace All" option would not function
when the replacement string was empty.