PostgreSQL 10 has improvements in the unaccent function used by the
evergreen.unaccent_and_squash function. The test needs a small
modification to take this into account. Actual code change from Mike
Rylander with a little typo fix.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Ben Shum <ben@evergreener.net>
'elnino', 'Spanish "The Kid"');
SELECT is(evergreen.unaccent_and_squash('Œuvres'),
- 'euvres', 'oe ligature');
+ CASE WHEN regexp_replace(regexp_replace(version(),'\..+',''),'^PostgreSQL ','')::INT >= 10 THEN 'oeuvres' ELSE 'euvres' END, 'oe ligature');
-- Punctuation Tests