Skip to content

Commit

Permalink
Revert "Change the OID of composites from unknown to record"
Browse files Browse the repository at this point in the history
This reverts commit 25f05ba.
  • Loading branch information
nikita-volkov committed Oct 31, 2023
1 parent 25f05ba commit 3f85f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Hasql/Private/Encoders.hs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ array (Array (Array.Array valueOID arrayOID arrayEncoder renderer)) =
-- Lift a composite encoder into a value encoder.
composite :: Composite a -> Value a
composite (Composite encode print) =
Value (Value.unsafePTI PTI.record encodeValue printValue)
Value (Value.unsafePTI PTI.binaryUnknown encodeValue printValue)
where
encodeValue idt val =
A.composite $ encode val idt
Expand Down

0 comments on commit 3f85f64

Please sign in to comment.