sigh
This commit is contained in:
parent
086dfb1f1e
commit
8748923faa
@ -766,9 +766,9 @@ testInclusion = do
|
|||||||
it "creates sane SQL (chained)" $ do
|
it "creates sane SQL (chained)" $ do
|
||||||
let obj = object ["a" .= [object ["b" .= True]]]
|
let obj = object ["a" .= [object ["b" .= True]]]
|
||||||
obj' = object ["b" .= True, "c" .= Null]
|
obj' = object ["b" .= True, "c" .= Null]
|
||||||
encoded = encode obj'
|
encoded = BSL.toStrict $ encode obj'
|
||||||
createSaneSQL
|
createSaneSQL
|
||||||
(jsonbVal obj ->. "a" <@. jsonbVal )
|
(jsonbVal obj ->. "a" <@. jsonbVal obj')
|
||||||
"SELECT ((? -> ?) <@ ?)\nFROM \"Json\"\n"
|
"SELECT ((? -> ?) <@ ?)\nFROM \"Json\"\n"
|
||||||
[ PersistLiteralEscaped "{\"a\":[{\"b\":true}]}"
|
[ PersistLiteralEscaped "{\"a\":[{\"b\":true}]}"
|
||||||
, PersistText "a"
|
, PersistText "a"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user