Bug #58855 ReplaceText with "Replace All" cause "Index out of bound"
Submitted: 10 Dec 2010 1:49 Modified: 13 Dec 2010 12:23
Reporter: fancy105 Cable Fan Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.29 CE Rev 6756 OS:Windows (Windows XP Professional Simplified Chinese (SP3))
Assigned to: CPU Architecture:Any
Tags: index out of bound, replace all

[10 Dec 2010 1:49] fancy105 Cable Fan
Description:
When I open an exists script file of a exist table creation. I selected the old table name by double-click, and press [Ctrl + H] to show the replace dialog. Then the "find" is the old table name, and type the new table name to the "replace", finally click on the "Replace All" button. The error caused, show "Index out of bound"(the main idea, because my OS's Language is Simplified Chinese). Click "Close" button, the MySQL Workbench termiated. But, when I click the "Replace Next" button first, then click "Close" button, the MySQL Workbench run continue.

How to repeat:
Open an exists script file, selected a word, and press [Ctrl + H], then click on the "Replace All".

Suggested fix:
It's a error abount index access of array, should be easy to fix. good locky!
[10 Dec 2010 1:52] fancy105 Cable Fan
The error message dialog

Attachment: OutOfBound.JPG (image/pjpeg, text), 40.91 KiB.

[13 Dec 2010 12:23] Johannes Taxacher
please update to most recent version of workbench as this problem has been fixed in release version ( 5.2.31).
This is a duplicate of Bug #56898