Debian Codegraph @

contrib/fuzzystrmatch/sql/fuzzystrmatch_utf8.sql

raw
1 /*
2 * This test must be run in a database with UTF-8 encoding,
3 * because other encodings don't support all the characters used.
4 */
5
6 SELECT getdatabaseencoding() <> 'UTF8'
7 AS skip_test \gset
8 \if :skip_test
9 \quit
10 \endif
11
12 set client_encoding = utf8;
13
14 -- CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
15
16 -- Accents
17 SELECT daitch_mokotoff('Müller');
18 SELECT daitch_mokotoff('Schäfer');
19 SELECT daitch_mokotoff('Straßburg');
20 SELECT daitch_mokotoff('Éregon');
21
22 -- Special characters added at https://www.jewishgen.org/InfoFiles/Soundex.html
23 SELECT daitch_mokotoff('gąszczu');
24 SELECT daitch_mokotoff('brzęczy');
25 SELECT daitch_mokotoff('ţamas');
26 SELECT daitch_mokotoff('țamas');