Closed neogenie closed 3 years ago
Hi Neo!
I think the problem is the redundant definition of array types as custom types. I suppose the removing of OZO_PG_DEFINE_CUSTOM_TYPE(std::vector<User>, "t_user[]");
and OZO_PG_DEFINE_CUSTOM_TYPE(std::vector<Group>, "t_group[]");
should help. Arrays aren't needed to be defined as custom types. They should be registered to get oids mapping, but no extra definition is needed.
Hope that helps.
Thanks!
It seems that nested custom types doesn't works as expected:
Simple we have User custom type nested into Group custom type:
And
Works as expected and compiles with
But it doesn't compiles when Group contains an array of nested User model:
And
with error like this: