When passing an iterable to be written to a JSON field for an UPDATE SQL query, it writes the entire collection to the single field.
Actual Behaviour
When passing an iterable that is being written into a JSON field, the iterable gets expanded for an UPDATE SQL query but doesn't for a CREATE SQL query.
For the UPDATE SQL query, the individual collection's values are written to other fields in the query and result in a mismatch of number of values being inserted into the number of fields available on the database record.
Expected Behavior
When passing an iterable to be written to a JSON field for an UPDATE SQL query, it writes the entire collection to the single field.
Actual Behaviour
When passing an iterable that is being written into a JSON field, the iterable gets expanded for an UPDATE SQL query but doesn't for a CREATE SQL query.
For the UPDATE SQL query, the individual collection's values are written to other fields in the query and result in a mismatch of number of values being inserted into the number of fields available on the database record.
Steps To Reproduce
https://gitter.im/micronautfw/questions?at=5e8674d53c6c42277aef4f32
Environment Information
N/A
Example Application
No response
Version
3.2.2