postgresql/contrib/pg_trgm
Tom Lane 9728eda792 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.
2013-02-13 14:07:06 -05:00
..
data
expected
sql
.gitignore
Makefile
pg_trgm--1.0.sql
pg_trgm--unpackaged--1.0.sql
pg_trgm.control
trgm_gin.c
trgm_gist.c
trgm_op.c
trgm.h