diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-13 14:07:17 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-13 14:07:17 -0500 |
commit | f73a16340c3eba317ab433466b9ad9eb2f962020 (patch) | |
tree | a116152ba0dbc1ac4c3c9537dc491f00d8fb7094 /src/backend/regex | |
parent | 52c889ea4f7696157fde4b74ae62fbe014d06087 (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 'src/backend/regex')
0 files changed, 0 insertions, 0 deletions