mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-28 22:01:47 +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.
|
-- Lift a composite encoder into a value encoder.
|
||||||
composite :: Composite a -> Value a
|
composite :: Composite a -> Value a
|
||||||
composite (Composite encode print) =
|
composite (Composite encode print) =
|
||||||
Value (Value.unsafePTI PTI.binaryUnknown encodeValue printValue)
|
Value (Value.unsafePTI PTI.record encodeValue printValue)
|
||||||
where
|
where
|
||||||
encodeValue idt val =
|
encodeValue idt val =
|
||||||
A.composite $ encode val idt
|
A.composite $ encode val idt
|
||||||
|
Loading…
Reference in New Issue
Block a user