-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
JSON incompatibility with node-mysql #2181
Comments
Yes, agree. There was also some discussion to allow to change this behaviour via some config flag |
Met the problem with TypeORM.😆 |
I also encountered this problem while attempting to switch our library from mysql to mysql2. A configuration flag would make it possible to switch gradually (ie. change the library and then afterwards change logic to handle deserialized objects) |
Closing due to #2642. It's now possible to use this option at the connection level: {
jsonStrings: true,
}
|
node-mysql2 returns deserialized value of MySQL JSON column while node-mysql returns string.
For updating/inserting, both require serialized string.
I think it is worth adding to "Known incompatibilities with node-mysql" section of the documentation.
The text was updated successfully, but these errors were encountered: