summaryrefslogtreecommitdiff
path: root/contrib/unaccent/sql
diff options
context:
space:
mode:
authorTom Lane2009-08-18 16:00:50 +0000
committerTom Lane2009-08-18 16:00:50 +0000
commit4b98b613f6980d4d14dada062b47322132107144 (patch)
tree333b05935658fbec9b60897e0d7103ca4e9731ef /contrib/unaccent/sql
parent13845d261c9843cc3617a5e44fba09335bce3e83 (diff)
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.
Diffstat (limited to 'contrib/unaccent/sql')
-rw-r--r--contrib/unaccent/sql/unaccent.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/unaccent/sql/unaccent.sql b/contrib/unaccent/sql/unaccent.sql
index 71ab5bb4358..ede938d4795 100644
--- a/contrib/unaccent/sql/unaccent.sql
+++ b/contrib/unaccent/sql/unaccent.sql
@@ -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');