Skip to content

v3 Bugfix: Return value in MSSQL soft-delete#6916

Merged
sushantdhiman merged 1 commit intosequelize:v3from
lumaxis:bugfix/mssql-soft-delete-return
Nov 30, 2016
Merged

v3 Bugfix: Return value in MSSQL soft-delete#6916
sushantdhiman merged 1 commit intosequelize:v3from
lumaxis:bugfix/mssql-soft-delete-return

Conversation

@lumaxis
Copy link
Copy Markdown
Contributor

@lumaxis lumaxis commented Nov 25, 2016

Pull Request check-list

Please make sure to review and check all of these items:

  • Does npm run test or npm run test-mssql pass with this change (including linting)?
  • Does your issue contain a link to existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Have you added an entry under Future in the changelog?

Description of change

This fixes an issue where undefined was returned when using a soft-delete on MSSQL because the query type of the UPDATE query that ran the soft-delete was not properly set.

@lumaxis lumaxis force-pushed the bugfix/mssql-soft-delete-return branch from 5f240f7 to 9e28020 Compare November 25, 2016 01:07
@mention-bot
Copy link
Copy Markdown

@lumaxis, thanks for your PR! By analyzing the history of the files in this pull request, we identified @felixfbecker, @janmeier and @cbauerme to be potential reviewers.

@lumaxis lumaxis changed the base branch from master to v3 November 25, 2016 01:08
@lumaxis
Copy link
Copy Markdown
Contributor Author

lumaxis commented Nov 25, 2016

I accidentally opened this against the wrong base branch first. Anything I can do to trigger CI again?

@janmeier
Copy link
Copy Markdown
Member

Push an empty commit or open a new pr :-)

@felixfbecker
Copy link
Copy Markdown
Contributor

git commit --amend --no-edit
git push --force

Because the query type was not properly set when doing a soft delete, Sequelize tried to format the result in the wrong format: https://github.com/sequelize/sequelize/blob/cf232e76b46b7cb2fc98c455cc2010d520ca592d/lib/dialects/mssql/query.js#L186
@lumaxis lumaxis force-pushed the bugfix/mssql-soft-delete-return branch from 9e28020 to f329852 Compare November 25, 2016 12:50
@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 25, 2016

Current coverage is 93.88% (diff: 100%)

Merging #6916 into v3 will increase coverage by <.01%

Powered by Codecov. Last update cf232e7...f329852

@lumaxis
Copy link
Copy Markdown
Contributor Author

lumaxis commented Nov 25, 2016

@janmeier @felixfbecker Thanks! Looking good 🙂

@lumaxis lumaxis changed the title Bugfix: mssql soft delete return Bugfix: Return value in MSSQL soft-delete Nov 25, 2016
@lumaxis
Copy link
Copy Markdown
Contributor Author

lumaxis commented Nov 29, 2016

@janmeier @felixfbecker What do you think about this change?

@felixfbecker
Copy link
Copy Markdown
Contributor

PR to master?

@lumaxis lumaxis changed the title Bugfix: Return value in MSSQL soft-delete v3 Bugfix: Return value in MSSQL soft-delete Nov 30, 2016
@lumaxis
Copy link
Copy Markdown
Contributor Author

lumaxis commented Nov 30, 2016

@felixfbecker Right, sorry! I don't use v4 personally but just opened #6930 which hopefully passes CI soon to 🙂

@sushantdhiman sushantdhiman merged commit 00cd521 into sequelize:v3 Nov 30, 2016
@sushantdhiman
Copy link
Copy Markdown
Contributor

Master fix merged at #6930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants