Thread: Fix for fuzzystrmatch

Fix for fuzzystrmatch

From
Alexander Korotkov
Date:
Hacker,

I found two issues in fuzzystrmatch contrib.
1) Incorrect s_data shift in levenshtein calculation with threshold with multibyte characters. "i" index was used instead of "start_column".
2) Missing dependency of fuzzystrmatch.o on levenshtein.c

Patch is attached.

------
With best regards,
Alexander Korotkov.
Attachment

Re: Fix for fuzzystrmatch

From
Tom Lane
Date:
Alexander Korotkov <aekorotkov@gmail.com> writes:
> Hacker,
> I found two issues in fuzzystrmatch contrib.
> 1) Incorrect s_data shift in levenshtein calculation with threshold with
> multibyte characters. "i" index was used instead of "start_column".
> 2) Missing dependency of fuzzystrmatch.o on levenshtein.c

> Patch is attached.

Applied, thanks.
        regards, tom lane