You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually the PostgreSQL bytea type is handled by the D ubyte[] type, like the varchar, text is handled by the D string type.
The readArray method of 'Message' is using methods like 'arrayDimensions!T' or 'readDimension' that have specials check for handling strings, with the isSomeString template, but can't actually handle the case where the PostgreSQL column to read has a type bytea[], that must be read by a ubyte[][] array.
Suggestion? There's some workaround of this is an intended behaviours? Must I provide a pull request with the adaptations to 'readDimension', 'arrayDimensions', 'multiArrayElemType' to handle the case?
The text was updated successfully, but these errors were encountered:
isSomeString are neccessary because ddb treats strings as base types. Otherwise strings would be treated as arrays of chars. As for ubyte[][] problem, pull request is welcome.
Or maybe immutable(ubyte)[], for symmetry with string?
I've never seen a data type like that before, but if it's serialized or binary data (which it probably is) you'll need a ubyte[] to put it through some engines like MsgPackD, so I guess the immutable would be somewhat impractical.
Actually the PostgreSQL bytea type is handled by the D ubyte[] type, like the varchar, text is handled by the D string type.
The readArray method of 'Message' is using methods like 'arrayDimensions!T' or 'readDimension' that have specials check for handling strings, with the isSomeString template, but can't actually handle the case where the PostgreSQL column to read has a type bytea[], that must be read by a ubyte[][] array.
Suggestion? There's some workaround of this is an intended behaviours? Must I provide a pull request with the adaptations to 'readDimension', 'arrayDimensions', 'multiArrayElemType' to handle the case?
The text was updated successfully, but these errors were encountered: