We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9d3d2 commit cce964bCopy full SHA for cce964b
1 file changed
src/FirebirdSql.EntityFrameworkCore.Firebird.Tests/Query/ElementaryTests.cs
@@ -196,6 +196,19 @@ public async Task SelectStartsWithConstant()
196
StringAssert.Contains("'Jiri%'", sql);
197
}
198
199
+
200
+ [Test]
201
+ public async Task SelectWithCollate()
202
+ {
203
+ await using (var db = await GetDbContext<SelectContext>())
204
205
+ var query = db.Set<MonAttachment>()
206
+ .Where(x => EF.Functions.Collate(x.AttachmentName, "UNICODE_CI_AI") == "test");
207
+ Assert.DoesNotThrowAsync(() => query.LoadAsync());
208
+ var sql = db.LastCommandText;
209
+ StringAssert.Contains(@"""m"".""MON$ATTACHMENT_NAME"" COLLATE UNICODE_CI_AI", sql);
210
+ }
211
212
213
214
class SelectContext : FbTestDbContext
0 commit comments