feat: Allow filtering by IS DISTINCT FROM using the isdistinct operator

This commit is contained in:
Laurence Isla
2023-04-06 13:02:03 -05:00
committed by GitHub
parent acf62320ef
commit d3b10e7b2a
7 changed files with 28 additions and 1 deletions
+10
View File
@@ -324,6 +324,16 @@ spec actualPgVersion = do
[json|[{"id":1},{"id":2}]|]
{ matchHeaders = [matchContentTypeJson] }
it "matches with IS DISTINCT FROM" $
get "/no_pk?select=a&a=isdistinct.2" `shouldRespondWith`
[json|[{"a":null},{"a":"1"}]|]
{ matchHeaders = [matchContentTypeJson] }
it "matches with IS DISTINCT FROM using not operator" $
get "/no_pk?select=a&a=not.isdistinct.2" `shouldRespondWith`
[json|[{"a":"2"}]|]
{ matchHeaders = [matchContentTypeJson] }
describe "Shaping response with select parameter" $ do
it "selectStar works in absense of parameter" $
get "/complex_items?id=eq.3" `shouldRespondWith`