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.
REL8_5_ALPHA1_BRANCH
Tom Lane 17 years ago
parent 13845d261c
commit 4b98b613f6
  1. 7
      contrib/unaccent/expected/unaccent.out
  2. 3
      contrib/unaccent/sql/unaccent.sql

@ -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

@ -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');

Loading…
Cancel
Save