You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to save or update an entity with an “array” property, it will lead to a mysqld error for invalid data. This is caused by unserialized arrays being passed as parameters through the mysql2 driver.
As a workaround, I tried changing the Loopback entity array properties to the “object” type but that causes a conflict with the Loopback request validation expecting an array type to be passed in the request.
Serializing arrays to a string for non-Postgres dialects at the Sequelize extension layer is likely the most straightforward way to resolve this.
Describe the bug
If you try to save or update an entity with an “array” property, it will lead to a mysqld error for invalid data. This is caused by unserialized arrays being passed as parameters through the mysql2 driver.
Relates to: #9598
Logs
No response
Additional information
As a workaround, I tried changing the Loopback entity array properties to the “object” type but that causes a conflict with the Loopback request validation expecting an array type to be passed in the request.
Serializing arrays to a string for non-Postgres dialects at the Sequelize extension layer is likely the most straightforward way to resolve this.
References:
Reproduction
N/A
The text was updated successfully, but these errors were encountered: