fix: allows insert primary key with zero#13458
Merged
Merged
Conversation
wbourne0
previously requested changes
Oct 10, 2021
Member
wbourne0
left a comment
There was a problem hiding this comment.
The change itself looks fine, but can you add some tests to prevent regression and some examples which show where this can be an issue to the PR description? Thanks!
sdepold
reviewed
Oct 17, 2021
Looks like the requested changes were made.
sdepold
approved these changes
Oct 24, 2021
Contributor
|
🎉 This PR is included in version 6.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
aliatsis
pushed a commit
to creditiq/sequelize
that referenced
this pull request
Jun 2, 2022
* fix: allows insert primary key with zero * test: allows insert primary key with zero Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
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.
Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Before now, I create a row, the primary key pass
0, the sql generator will ignore the0, useDEFAULTinstead, this pr will fixes the problem.Examples: