mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 01:16:48 +02:00
b6f3649bba
This makes it easier to add new tests that are specific to Unicode features. The files were previously in KOI8-R. Discussion: https://www.postgresql.org/message-id/8506.1545111362@sss.pgh.pa.us
19 lines
452 B
SQL
19 lines
452 B
SQL
CREATE EXTENSION unaccent;
|
|
|
|
-- must have a UTF8 database
|
|
SELECT getdatabaseencoding();
|
|
|
|
SET client_encoding TO 'UTF8';
|
|
|
|
SELECT unaccent('foobar');
|
|
SELECT unaccent('ёлка');
|
|
SELECT unaccent('ЁЖИК');
|
|
|
|
SELECT unaccent('unaccent', 'foobar');
|
|
SELECT unaccent('unaccent', 'ёлка');
|
|
SELECT unaccent('unaccent', 'ЁЖИК');
|
|
|
|
SELECT ts_lexize('unaccent', 'foobar');
|
|
SELECT ts_lexize('unaccent', 'ёлка');
|
|
SELECT ts_lexize('unaccent', 'ЁЖИК');
|