diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-13 14:07:13 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-13 14:07:13 -0500 |
commit | 7b058a2dc8fd5889cd443fd6ee40f51068357245 (patch) | |
tree | a6159966320a6a8f12c1fd6de321774db8dca055 /src/tutorial/complex.c | |
parent | a25ccd615f5d306b5eadcb16bb5de9ea7b777b16 (diff) | |
download | postgresql-7b058a2dc8fd5889cd443fd6ee40f51068357245.tar.gz postgresql-7b058a2dc8fd5889cd443fd6ee40f51068357245.zip |
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.
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions