mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-25 06:33:19 +03:00
Change the OID of composites from unknown to record
This commit is contained in:
parent
e8c8eb126f
commit
25f05bae79
@ -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.binaryUnknown encodeValue printValue)
|
||||
Value (Value.unsafePTI PTI.record encodeValue printValue)
|
||||
where
|
||||
encodeValue idt val =
|
||||
A.composite $ encode val idt
|
||||
|
Loading…
Reference in New Issue
Block a user