提交 4b98b613 编写于 作者: T Tom Lane

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.
上级 13845d26
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');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册