postgresql/contrib/unaccent/sql/unaccent.sql

19 lines
428 B
MySQL
Raw Normal View History

CREATE EXTENSION unaccent;
2009-08-18 18:34:39 +08:00
-- must have a UTF8 database
SELECT getdatabaseencoding();
2009-08-18 18:34:39 +08:00
SET client_encoding TO 'KOI8';
SELECT unaccent('foobar');
SELECT unaccent('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('unaccent', 'foobar');
SELECT unaccent('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT ts_lexize('unaccent', 'foobar');
SELECT ts_lexize('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT ts_lexize('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');