mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
Fix strigified JSON for the prepared_argument in query_log (#5615)
Fix the `toJson` instance of `PreparedSql` to use `pgScalarValueToJson` instead of `txtEncodedPGVal` Fixes: https://github.com/hasura/graphql-engine/issues/5582
This commit is contained in:
parent
ea76e7840e
commit
fa944b18dd
@ -281,7 +281,7 @@ data PreparedSql
|
||||
instance J.ToJSON PreparedSql where
|
||||
toJSON (PreparedSql q prepArgs _) =
|
||||
J.object [ "query" J..= Q.getQueryText q
|
||||
, "prepared_arguments" J..= map (txtEncodedPGVal . snd) prepArgs
|
||||
, "prepared_arguments" J..= map (pgScalarValueToJson . snd) prepArgs
|
||||
]
|
||||
|
||||
-- | Intermediate reperesentation of a computed SQL statement and prepared
|
||||
|
Loading…
Reference in New Issue
Block a user