Re: Replace function BUG - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Replace function BUG
Date
Msg-id 1482.1090038264@sss.pgh.pa.us
Whole thread Raw
In response to Re: Replace function BUG  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-bugs
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Tue, 13 Jul 2004, Nicolas Bottarini wrote:
>> In postgreSQL 7.3.2 when I execute the following query
>>
>> select replace('test %400% result', 'result', 'ok');
>>
>> it returns "test % ok"

> I think this was fixed in the 7.4 branch.

It was fixed in 7.3 branch as well:

2003-04-23 14:19  tgl

    * src/backend/utils/adt/varlena.c (REL7_3_STABLE): Fix misbehavior
    of replace() on strings containing '%'.  Will patch separately but
    equivalently in HEAD.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Slow views
Next
From: Tom Lane
Date:
Subject: Re: Slow views