test: query the empty string
This commit is contained in:
committed by
Steve Chavez
parent
96ca177c31
commit
ed90774f53
@@ -1397,3 +1397,13 @@ spec actualPgVersion = do
|
|||||||
{ matchStatus = 404
|
{ matchStatus = 404
|
||||||
, matchHeaders = [matchContentTypeJson]
|
, 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]
|
||||||
|
}
|
||||||
|
|||||||
Vendored
+2
@@ -3625,3 +3625,5 @@ create aggregate test.bom_csv_agg (test.lines) (
|
|||||||
, sfunc = bom_csv_trans
|
, sfunc = bom_csv_trans
|
||||||
, finalfunc = bom_csv_final
|
, finalfunc = bom_csv_final
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table empty_string as select 1 as id, ''::text as string;
|
||||||
|
|||||||
Reference in New Issue
Block a user