Thread: Bug Report - Find / Replace / Replace All

Bug Report - Find / Replace / Replace All

From
"Luc Mousseau"
Date:
Platform: Windows XP Professional
Language: English
Distribution/version: pgAdmin III v1.5 (Dec 9 2005)
 
It seems there's a bug in the Find and Replace function of the query analyser. Specifically the "Replace All" appears to be somewhat recursive. It appears to depend on the number of lines (including blank lines) in the window.
 
To reproduce this bug do the following:
 
1. Open new Query window.
2. Type the word "test".
3. Hit enter key a dozen times (just blank lines are fine).
4. Edit > Replace, and replace the word "test" with the word "itest". Click "Replace All".
5. Result is the original word "test" is replaced with "iiiiiiiiiiiiiiiiiiiiiiitest".
 
Regards,
 
Luc

Re: Bug Report - Find / Replace / Replace All

From
"Dave Page"
Date:
 


From: pgadmin-support-owner@postgresql.org [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Luc Mousseau
Sent: 13 January 2006 21:39
To: pgadmin-support@postgresql.org
Subject: [pgadmin-support] Bug Report - Find / Replace / Replace All

Platform: Windows XP Professional
Language: English
Distribution/version: pgAdmin III v1.5 (Dec 9 2005)
 
It seems there's a bug in the Find and Replace function of the query analyser. Specifically the "Replace All" appears to be somewhat recursive. It appears to depend on the number of lines (including blank lines) in the window.
 
To reproduce this bug do the following:
 
1. Open new Query window.
2. Type the word "test".
3. Hit enter key a dozen times (just blank lines are fine).
4. Edit > Replace, and replace the word "test" with the word "itest". Click "Replace All".
5. Result is the original word "test" is replaced with "iiiiiiiiiiiiiiiiiiiiiiitest".
 
Thanks Luc, I've committed a fix for this to SVN.
 
Regards, Dave