Repository navigation
fix(mysql): boolean TINYINT support - #10644
Merged
Merged
Conversation
This regressed in sequelize#10492 Fixes sequelize#10600
Codecov Report
@@ Coverage Diff @@
## master #10644 +/- ##
=======================================
Coverage 96.2% 96.2%
=======================================
Files 93 93
Lines 9011 9011
=======================================
Hits 8669 8669
Misses 342 342
Continue to review full report at Codecov.
|
SimonSchick
reviewed
Mar 28, 2019
| }); | ||
| }); | ||
|
|
||
| if (dialect === 'mysql') { |
Contributor
There was a problem hiding this comment.
I think we could make this a simple unit test, not mysql specific?
Contributor
Author
There was a problem hiding this comment.
This behavior is specific to MySQL. On other platforms, where TRUE and FALSE are not aliases for 1 and 0 respectively, passing a boolean literal where a number is expected will result in an error.
sushantdhiman
approved these changes
Mar 29, 2019
Contributor
|
🎉 This PR is included in version 5.2.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
gabegorelick
added a commit
to gabegorelick/sequelize
that referenced
this pull request
Mar 30, 2019
Backports sequelize#10644 to v4 Fixes sequelize#10600
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This regressed in #10492
Fixes #10600
Fixes #10633
Pull Request check-list
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Bring back support for passing booleans into
TINYINTfields.