diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-13 14:07:22 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-13 14:07:22 -0500 |
| commit | 04d7fa5e31f094bd1d87e2da93ba1786a882884f (patch) | |
| tree | 5a79ad66fbc550a86bcb5b1743c5db1e19ade970 /src | |
| parent | ae1525fdcba5aae4f0efa5ea9803e615644b3e71 (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')
0 files changed, 0 insertions, 0 deletions
