git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: cd89965) | patch
Fix contrib/pg_trgm's similarity() function for trigram-free strings.
2013年2月13日 19:07:06 +0000 (14:07 -0500)
2013年2月13日 19:07:06 +0000 (14:07 -0500)
commit 9728eda7925b6d42621b38c48e91ef9ab8d90cbc
Fix contrib/pg_trgm's similarity() function for trigram-free strings.

Cases such as similarity('', '') produced a NaN result due to computing
0/0. Per discussion, make it return zero instead.

This appears to be the basic cause of bug #7867 from Michele Baravalle,
although it remains unclear why her installation doesn't think Cyrillic
letters are letters.

Back-patch to all active branches.
contrib/pg_trgm/expected/pg_trgm.out diff | blob | blame | history
contrib/pg_trgm/sql/pg_trgm.sql diff | blob | blame | history
contrib/pg_trgm/trgm_op.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /