2022-01-05 19:30:07 +01:00
|
|
|
/*
|
|
|
|
* This test must be run in a database with UTF-8 encoding
|
|
|
|
* and a Unicode-aware locale.
|
2023-03-09 19:52:41 +01:00
|
|
|
*
|
|
|
|
* Also disable this file for ICU, because the test for the the
|
|
|
|
* Turkish dotted I is not correct for many ICU locales. citext always
|
|
|
|
* uses the default collation, so it's not easy to restrict the test
|
|
|
|
* to the "tr-TR-x-icu" collation where it will succeed.
|
2022-01-05 19:30:07 +01:00
|
|
|
*/
|
|
|
|
SELECT getdatabaseencoding() <> 'UTF8' OR
|
2023-06-07 16:57:06 +02:00
|
|
|
(SELECT (datlocprovider = 'c' AND datctype = 'C') OR datlocprovider = 'i'
|
|
|
|
FROM pg_database
|
2023-03-09 19:52:41 +01:00
|
|
|
WHERE datname=current_database())
|
2022-01-05 19:30:07 +01:00
|
|
|
AS skip_test \gset
|
|
|
|
\if :skip_test
|
|
|
|
\quit
|