Skip to content

Commit ab2e893

Browse files
committed
Merge branch 'master' into stable
2 parents 9b20e54 + 6081a71 commit ab2e893

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ DATA = pg_tsparser--1.0.sql
88
PGFILEDESC = "pg_tsparser - parser for text search"
99

1010
REGRESS = pg_tsparser
11+
# We need a UTF8 database
12+
ENCODING = UTF8
13+
NO_LOCALE = 1
1114

1215
ifdef USE_PGXS
1316
PG_CONFIG = pg_config

expected/pg_tsparser.out

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ SELECT to_tsvector('english_ts', 'test2.com');
237237
(1 row)
238238

239239
-- Test non-ASCII symbols
240+
-- must have a UTF8 database
241+
SELECT getdatabaseencoding();
242+
getdatabaseencoding
243+
---------------------
244+
UTF8
245+
(1 row)
246+
247+
SET client_encoding TO 'UTF8';
240248
SELECT * from ts_parse('tsparser', 'аб_вгд 12_абв 12-абв абв.рф абв2.рф');
241249
tokid | token
242250
-------+--------

sql/pg_tsparser.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ SELECT to_tsvector('english_ts', 'test.com');
2828
SELECT to_tsvector('english_ts', 'test2.com');
2929

3030
-- Test non-ASCII symbols
31+
32+
-- must have a UTF8 database
33+
SELECT getdatabaseencoding();
34+
SET client_encoding TO 'UTF8';
35+
3136
SELECT * from ts_parse('tsparser', 'аб_вгд 12_абв 12-абв абв.рф абв2.рф');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy