Skip to content

Commit

Permalink
React to PG16 collation-related change in tests (npgsql#2870)
Browse files Browse the repository at this point in the history
(cherry picked from commit 03f9eb3)
  • Loading branch information
roji committed Sep 15, 2023
1 parent aae4d09 commit c25a0d7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2912,21 +2912,21 @@ public virtual async Task Create_collation_non_deterministic()
{
await Test(
_ => { },
builder => builder.HasCollation("some_collation", locale: "en-u-ks-primary", provider: "icu", deterministic: false),
builder => builder.HasCollation("some_collation", locale: "en-u-ks-level1", provider: "icu", deterministic: false),
model =>
{
var collation = Assert.Single(PostgresCollation.GetCollations(model));

Assert.Equal("some_collation", collation.Name);
Assert.Equal("icu", collation.Provider);
Assert.Equal("en-u-ks-primary", collation.LcCollate);
Assert.Equal("en-u-ks-primary", collation.LcCtype);
Assert.Equal("en-u-ks-level1", collation.LcCollate);
Assert.Equal("en-u-ks-level1", collation.LcCtype);
Assert.False(collation.IsDeterministic);
});

AssertSql(
"""
CREATE COLLATION some_collation (LOCALE = 'en-u-ks-primary',
CREATE COLLATION some_collation (LOCALE = 'en-u-ks-level1',
PROVIDER = icu,
DETERMINISTIC = False
);
Expand Down

0 comments on commit c25a0d7

Please sign in to comment.