Skip to content

Commit

Permalink
Use C.UTF-8 collation instead of en_US.UTF-8
Browse files Browse the repository at this point in the history
This is necessary for CockroachDB support:
cockroachdb/cockroach#16618

CockroachDB's CREATE DATABASE currently supports only "C" and "C.UTF-8"
collations.
  • Loading branch information
ivan committed Jul 9, 2018
1 parent 313fff0 commit 8cb97e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ CREATE SCHEMA test;
cmds = [
["-c", "DROP DATABASE IF EXISTS postgrex_test;"],
["-c", "DROP DATABASE IF EXISTS postgrex_test_with_schemas;"],
["-c", "CREATE DATABASE postgrex_test TEMPLATE=template0 ENCODING='UTF8' LC_COLLATE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8';"],
["-c", "CREATE DATABASE postgrex_test_with_schemas TEMPLATE=template0 ENCODING='UTF8' LC_COLLATE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8';"],
["-c", "CREATE DATABASE postgrex_test TEMPLATE=template0 ENCODING='UTF8' LC_COLLATE='C.UTF-8' LC_CTYPE='C.UTF-8';"],
["-c", "CREATE DATABASE postgrex_test_with_schemas TEMPLATE=template0 ENCODING='UTF8' LC_COLLATE='C.UTF-8' LC_CTYPE='C.UTF-8';"],
["-d", "postgrex_test", "-c", sql],
["-d", "postgrex_test_with_schemas", "-c", sql_with_schemas]
]
Expand Down

0 comments on commit 8cb97e0

Please sign in to comment.