Repository navigation
Bugfix: Return value in MSSQL soft-delete - #6930
Merged
sushantdhiman merged 1 commit intoNov 30, 2016
Merged
sushantdhiman merged 1 commit into
sushantdhiman merged 1 commit into
Conversation
|
@lumaxis, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sushantdhiman, @felixfbecker and @mickhansen to be potential reviewers. |
lumaxis
force-pushed
the
bugfix/master-mssql-soft-delete-return
branch
from
November 30, 2016 00:08
476b238 to
6313217
Compare
4 of 5 tasks
Current coverage is 94.65% (diff: 100%)
|
janmeier
approved these changes
Nov 30, 2016
sushantdhiman
suggested changes
Nov 30, 2016
| - [FIXED] Issue with overrriding custom methods with association mixins (all association methods are now exposed) [#6682](https://github.com/sequelize/sequelize/issues/6682) | ||
| - [ADDED] Support condition objects in utility functions [#6685](https://github.com/sequelize/sequelize/pull/6685) | ||
| - [FIXED] HSTORE and JSON fields being renamed when `options.field` is specified on a matching model attribute | ||
| - [FIXED] Soft-delete not returning number of affected rows on mssql [#6916](https://github.com/sequelize/sequelize/pull/6930) |
Contributor
There was a problem hiding this comment.
Link and issue id doesn't match ^
Contributor
Author
There was a problem hiding this comment.
Good catch. Fixed, thanks!
Because the query type was not properly set when doing a soft delete, Sequelize tried to format the result in the wrong format.
lumaxis
force-pushed
the
bugfix/master-mssql-soft-delete-return
branch
from
November 30, 2016 17:21
6313217 to
4d819e2
Compare
sushantdhiman
approved these changes
Nov 30, 2016
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 is a version of #6916, ported against
master.Pull Request check-list
Please make sure to review and check all of these items:
ornpm run testnpm run test-mssqlpass with this change (including linting)?Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?Futurein the changelog?Description of change
This fixes an issue where
undefinedwas returned when using a soft-delete on MSSQL because the query type of theUPDATEquery that ran the soft-delete was not properly set.