Preserve additional ORDER BY qualifiers
- Bump version to v4-rc3
This commit is contained in:
@@ -452,14 +452,14 @@ let queryTests = testList "Query" [
|
||||
}
|
||||
test "succeeds for PostgreSQL case-insensitive ordering" {
|
||||
Expect.equal
|
||||
(Query.orderBy [ Field.Named "i:Test.Field DESC" ] PostgreSQL)
|
||||
" ORDER BY LOWER(data#>>'{Test,Field}') DESC"
|
||||
(Query.orderBy [ Field.Named "i:Test.Field DESC NULLS FIRST" ] PostgreSQL)
|
||||
" ORDER BY LOWER(data#>>'{Test,Field}') DESC NULLS FIRST"
|
||||
"Order By not constructed correctly for case-insensitive field"
|
||||
}
|
||||
test "succeeds for SQLite case-insensitive ordering" {
|
||||
Expect.equal
|
||||
(Query.orderBy [ Field.Named "i:Test.Field ASC" ] SQLite)
|
||||
" ORDER BY data->>'Test'->>'Field' COLLATE NOCASE ASC"
|
||||
(Query.orderBy [ Field.Named "i:Test.Field ASC NULLS LAST" ] 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