Re: bug: fuzzystrmatch levenshtein is wrong

Marcin Mańk <marcin.mank@gmail.com>

From: marcin mank <marcin.mank@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2009-12-08T07:37:23Z
Lists: pgsql-hackers
On Tue, Dec 8, 2009 at 4:10 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>> The current behavior of levenshtein(text,text,int,int,int) is wrong. Consider:
>
> Is this the same problem as bug #5098?

Yes. Exact same change, plus the shortcut evaluation (for when one of
the inputs is empty) was also wrong. I fixed that too.

Greetings
Maricn Mańk