test: query the empty string

This commit is contained in:
steve-chavez
2023-11-03 12:58:54 -05:00
committed by Steve Chavez
parent 96ca177c31
commit ed90774f53
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -1397,3 +1397,13 @@ spec actualPgVersion = do
{ matchStatus = 404
, matchHeaders = [matchContentTypeJson]
}
context "searching for an empty string" $ do
it "works with an empty eq filter" $
get "/empty_string?string=eq.&select=id,string" `shouldRespondWith`
[json|
[{"id":1,"string":""}]
|]
{ matchStatus = 200
, matchHeaders = [matchContentTypeJson]
}
+2
View File
@@ -3625,3 +3625,5 @@ create aggregate test.bom_csv_agg (test.lines) (
, sfunc = bom_csv_trans
, finalfunc = bom_csv_final
);
create table empty_string as select 1 as id, ''::text as string;