Preserve additional ORDER BY qualifiers
- Bump version to v4-rc3
This commit is contained in:
@@ -616,14 +616,14 @@ public static class CommonCSharpTests
|
||||
}),
|
||||
TestCase("succeeds for PostgreSQL case-insensitive ordering", () =>
|
||||
{
|
||||
Expect.equal(Query.OrderBy([Field.Named("i:Test.Field DESC")], Dialect.PostgreSQL),
|
||||
" ORDER BY LOWER(data#>>'{Test,Field}') DESC",
|
||||
Expect.equal(Query.OrderBy([Field.Named("i:Test.Field DESC NULLS FIRST")], Dialect.PostgreSQL),
|
||||
" ORDER BY LOWER(data#>>'{Test,Field}') DESC NULLS FIRST",
|
||||
"Order By not constructed correctly for case-insensitive field");
|
||||
}),
|
||||
TestCase("succeeds for SQLite case-insensitive ordering", () =>
|
||||
{
|
||||
Expect.equal(Query.OrderBy([Field.Named("i:Test.Field ASC")], Dialect.SQLite),
|
||||
" ORDER BY data->>'Test'->>'Field' COLLATE NOCASE ASC",
|
||||
Expect.equal(Query.OrderBy([Field.Named("i:Test.Field ASC NULLS LAST")], Dialect.SQLite),
|
||||
" ORDER BY data->>'Test'->>'Field' COLLATE NOCASE ASC NULLS LAST",
|
||||
"Order By not constructed correctly for case-insensitive field");
|
||||
})
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user