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
Boolean values not parsed properly to integer fields for MySQL #10633
Comments
See #10600 |
🎉 This issue has been resolved in version 5.2.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Note if this helps anyone. I was still getting that error after upgrading from from |
I'm still getting:
Perhaps that's because I don't have a clue as to what you meant by "fresh node modules nuke+install". |
This issue still persists |
What is the |
This should be resolved in v7 with #14505 |
What are you doing?
What do you expect to happen?
Record being created into the database with a proper converted default value to 0 or 1, since MySQL uses
TINYINT(1)
as the column type for boolean fields.What is actually happening?
SequelizeDatabaseError: Incorrect integer value: 'false' for column 'isPublic' at row 1
SequelizeDatabaseError: Incorrect integer value: 'true' for column 'isPublic' at row 1
Dialect: mysql
Dialect version: 2.6.0
Database version: 8.0.15
Sequelize version: 5.2.1
Tested with latest release: Yes
The text was updated successfully, but these errors were encountered: