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
{{ message }}
Repository navigation
Boolean values not parsed properly to integer fields for MySQL #10633
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
Note if this helps anyone. I was still getting that error after upgrading from from 4.42.0 to 5.6.0. It resolved itself after also upgrading mysql2 from 1.4.2 to 1.6.5 and a fresh node modules nuke+install.
Reacted by Charles, Bohr Shaw, Andrew Smith, parmindersk, ety001, bschulte-kryptowire, David Gonzalez and Ian MacKinnon
Reacted by creffect, Charles, ety001, bschulte-kryptowire and David Gonzalez
Note if this helps anyone. I was still getting that error after upgrading from from 4.42.0 to 5.6.0. It resolved itself after also upgrading mysql2 from 1.4.2 to 1.6.5 and a fresh node modules nuke+install.
I'm still getting:
SequelizeDatabaseError: Incorrect integer value: 'false' for columnvocascan.roles.adminRightsat row 1
(trying to get vocascan running as a server) despite having done:
Activity
gabegorelick commentedon Mar 28, 2019
See #10600
sushantdhiman commentedon Mar 29, 2019
🎉 This issue has been resolved in version 5.2.4 🎉
The release is available on:
Your semantic-release bot 📦🚀
nicolasgramlich commentedon Apr 16, 2019
Note if this helps anyone. I was still getting that error after upgrading from from
4.42.0to5.6.0. It resolved itself after also upgradingmysql2from1.4.2to1.6.5and a fresh node modules nuke+install.jabowery commentedon Sep 13, 2021
I'm still getting:
SequelizeDatabaseError: Incorrect integer value: 'false' for columnvocascan.roles.adminRightsat row 1(trying to get vocascan running as a server) despite having done:
Perhaps that's because I don't have a clue as to what you meant by "fresh node modules nuke+install".
rajathongal commentedon Oct 25, 2022
This issue still persists
fzn0x commentedon Oct 25, 2022
What is the
Sequelize versionSequelize and mysql2 version you are using? can you give a reproducible example with Sequelize SSCCE?WikiRik commentedon Oct 25, 2022
This should be resolved in v7 with #14505