diff options
author | Tom Lane | 2013-02-13 19:07:26 +0000 |
---|---|---|
committer | Tom Lane | 2013-02-13 19:07:26 +0000 |
commit | 697f5cadf5d81eeee3f3018d711ef33261dc7cd5 (patch) | |
tree | 3c736f0a8e9eb1e8f4e707db6b7a9d5607003eb6 /doc/src | |
parent | 06af3f96568646e7f878622bfa6e73f9eaa5f3f0 (diff) |
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 'doc/src')
0 files changed, 0 insertions, 0 deletions