-
Notifications
You must be signed in to change notification settings - Fork 125
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
Data corrupted when mapped from UUID array #412
Comments
What do you mean by data corruption? |
Couldn't reproduce data corruption. What |
I am using "github.com/google/uuid" |
Well, i am not receiving any errors in this example. My output is:
|
Describe the bug
In database I have 2 tables with relation one-to-many (both has ID columns of type uuid). I am making a select with a join of these two tables. The result object contains id field of parent table and an array of ids of child table. Data in the array of child ids are corrupted. The reason: the array of UUIDS is treated as an array of simple type and elements(e.g. uuid) created from first 16 bytes of the string.
Environment (please complete the following information):
Code snippet
Code for database:
Generated models:
Code to run:
Composite class:
Expected behavior
I am expecting that array of UUID`s will have correct values.
The text was updated successfully, but these errors were encountered: