Skip to content

[BUG]Cannot serialize empty containers. #31

Description

@EnderTheCoder

I was using oatpp-postgresql to insert contrainers(mainly UnorderedSet) into a table as a field and my program reported this:
image
This error shows that oatpp-postgresql cannot serialize a common UnderedSet<> object. After diving into the source code I found that this module was using the first element from the containter to get type info of it. When trying to insert an empty container into the db, it will throw an error tells that cannot get type oid of Void type.
cause
Any empty container serialization could break the QUERY() execution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions