## What are you doing? After upgrading to `4.43.0` (from `4.42.0`), we can see the following SQL being produced: ```sql UPDATE `Response` SET `deleted`='true',`updatedBy`=24751,`updatedAt`=NOW() WHERE `id` = 416695 AND `deleted` = 'false' ``` Note that `deleted` is being correctly to a string. This leads to the following error: ``` Error Code: 1292. Truncated incorrect DOUBLE value: 'false' ``` This code being used is: ```js await Response.update( { deleted: true, }, { where: {id: existingResponse.id}, ...context, } ); ``` The column is defined in the model as: ```js deleted: { type: DataTypes.TINYINT, }, ``` Reverting to 4.42.0 fixes the issue. ## What do you expect to happen? The latest version of Sequelize 4 should not convert my deleted booleans to strings. ## What is actually happening? The latest version of Sequelize 4 is converting my deleted booleans to strings. __Dialect:__ mysql __Database version:__ 5.7.23 __Sequelize version:__ 4.43.0 __Tested with latest release:__ Yes (of Sequelize 4)
Activity
SimonSchick commentedon Mar 22, 2019
Apparently #10496 broke this?
SimonSchick commentedon Mar 23, 2019
Please provide a full repro.
fix(mysql): boolean TINYINT support
gabegorelick commentedon Mar 28, 2019
Sorry about that.
The issue is that it should not be converted to the string
'false'. Instead it should be the literalFALSE(or0).#10644 should fix this. It will need to be backported to v4 once it's merged, but I'm happy to do that.
sushantdhiman commentedon Mar 29, 2019
🎉 This issue has been resolved in version 5.2.4 🎉
The release is available on:
Your semantic-release bot 📦🚀
fix(mysql): boolean TINYINT support
sushantdhiman commentedon Mar 30, 2019
🎉 This issue has been resolved in version 4.43.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
PaddyMann commentedon Apr 1, 2019
Awesome — thank you!