Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Cannot serialize empty containers. #31

Open
EnderTheCoder opened this issue Dec 6, 2024 · 1 comment
Open

[BUG]Cannot serialize empty containers. #31

EnderTheCoder opened this issue Dec 6, 2024 · 1 comment

Comments

@EnderTheCoder
Copy link

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.

@EnderTheCoder
Copy link
Author

Well, I dont see any way can fix this quickly. Maybe add a more specific and helpful error msg tells that this is not implemented would be better? The current error msg is kinda confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant