-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mssql): returning data for bulkUpdate #12413
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12413 +/- ##
==========================================
- Coverage 96.44% 96.41% -0.04%
==========================================
Files 95 95
Lines 9114 9116 +2
==========================================
- Hits 8790 8789 -1
- Misses 324 327 +3
Continue to review full report at Codecov.
|
No tests for this change? Is this already covered by previous tests |
You do have tests for I can see something similar on the postgres tests - but the postgres tests seems way more complex than what you have to MSSQL. |
Here is the relevant test file
You need to modify if (current.dialect.supports.returnValues) { |
- bulkUpdate will now return the updates if options.returning is true. - Fix documentation for model.update
@sunshinewyin I've kept the same syntax as the old test, so I used: if (_.get(current.dialect.supports, 'returnValues.output')) { Look for It seems the tests now fails on something unrelated to my fix (malformed URL of some sort) |
🎉 This PR is included in version 6.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Pull Request check-list
Please make sure to review and check all of these items:
npm run test
ornpm run test-DIALECT
pass with this change (including linting)?Description of change
Fix for the MSSQL dialect to return changed records when using bulkUpdate with
returning: true
This is in relation to #12410 as requested