Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4b98b61

Browse files
committed
Print the actual DB encoding in the unaccent regression test.
This is to help make it more obvious what the problem is, if the encoding isn't what the test expects.
1 parent 13845d2 commit 4b98b61

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

contrib/unaccent/expected/unaccent.out

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
SET client_min_messages = warning;
22
\set ECHO none
33
RESET client_min_messages;
4+
-- must have a UTF8 database
5+
SELECT getdatabaseencoding();
6+
getdatabaseencoding
7+
---------------------
8+
UTF8
9+
(1 row)
10+
411
SET client_encoding TO 'KOI8';
512
SELECT unaccent('foobar');
613
unaccent

contrib/unaccent/sql/unaccent.sql

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ SET client_min_messages = warning;
44
\set ECHO all
55
RESET client_min_messages;
66

7+
-- must have a UTF8 database
8+
SELECT getdatabaseencoding();
9+
710
SET client_encoding TO 'KOI8';
811

912
SELECT unaccent('foobar');

0 commit comments

Comments
 (0)