Fix for fuzzystrmatch
Started by Alexander Korotkovabout 15 years ago2 messageshackers
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.
Attachments:
fuzzystrmatch_fix.patchtext/x-patch; charset=US-ASCII; name=fuzzystrmatch_fix.patchDownload+5-2
Re: Fix for fuzzystrmatch
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