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.
This commit is contained in:
Tom Lane 2009-08-18 16:00:50 +00:00
parent 13845d261c
commit 4b98b613f6
2 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,13 @@
SET client_min_messages = warning;
\set ECHO none
RESET client_min_messages;
-- must have a UTF8 database
SELECT getdatabaseencoding();
getdatabaseencoding
---------------------
UTF8
(1 row)
SET client_encoding TO 'KOI8';
SELECT unaccent('foobar');
unaccent

View File

@ -4,6 +4,9 @@ SET client_min_messages = warning;
\set ECHO all
RESET client_min_messages;
-- must have a UTF8 database
SELECT getdatabaseencoding();
SET client_encoding TO 'KOI8';
SELECT unaccent('foobar');