distal-attribute
distal-attribute
distal-attribute
distal-attribute

Replacing text.

User, date Message
Written by QuintusTasmanianDevil
10 months ago
Category: General
27 posts since Tue, 12 Nov 13
I inserted an sql file (ctrl-O). It contains a number of references to my original database. I wanted to replace all references of the database name with, for example, fred999. I positioned the caret at the top of the sql text and opened the search and replace text dialog. I entered the text strings correctly. All tick box options are unchecked; the radio buttons are "Forward", "Entire scope" and "Global". I clicked Replace all.

For some reason, only the first string was replaced.

Am I doing something wrong?
Written by kalvaro
10 months ago
595 posts since Thu, 29 Nov 07
It should work. Can you reproduce it always? Can you post a small sample?
Written by ansgar
10 months ago
5023 posts since Fri, 07 Apr 06
I think I can reproduce that. It makes no difference whether you click the "Replace" or "Replace all" button. Will check that.
Written by QuintusTasmanianDevil
10 months ago
27 posts since Tue, 12 Nov 13
Thank you guys. I have a sample script if you want to test it on but I'm reasonably sure anything will do. I have two screenshots which I can't upload but I can email them if you would like some visual evidence. Anyway, it seems it has been mostly confirmed so I'll wait for your feedback.
Written by ansgar
10 months ago
5023 posts since Fri, 07 Apr 06
Fixed in r4654.

Looks like that was never working before, since I have created that dialog in February 2010. Odd...
Written by QuintusTasmanianDevil
10 months ago
27 posts since Tue, 12 Nov 13
Installed 4645. Search and replace works okay now.
Written by QuintusTasmanianDevil
10 months ago
27 posts since Tue, 12 Nov 13
Sorry, I meant 4654.
 

Please login to leave a reply, or register at first.