-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
Add pattern and selector to PromisePoolCluster#getConnection #3017
Conversation
The implementation of `PromisePoolCluster#getConnection` does not match the capabilities of `PoolCluster#getConnection` nor the definition in `promise.d.ts`. This change corrects this by adding the missing `pattern` and `selector` parameters which are passed through to the underlying method. Fixes sidorares#1381 Note: I may have missed them, but I didn't see any tests for PromisePoolCluster to update or add to with this change.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3017 +/- ##
=======================================
Coverage 88.13% 88.13%
=======================================
Files 71 71
Lines 12889 12889
Branches 1353 1353
=======================================
Hits 11360 11360
Misses 1529 1529
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks, @TuckerWhitehouse 🙋🏻♂️ Just confirming it: node-mysql2/lib/pool_cluster.js Lines 165 to 178 in dc3a680
I need to check if the typings are correct. |
LGTM Lines 112 to 114 in dc3a680
|
The implementation of
PromisePoolCluster#getConnection
does not match the capabilities ofPoolCluster#getConnection
nor the definition inpromise.d.ts
.This change corrects this by adding the missing
pattern
andselector
parameters which are passed through to the underlying method.Fixes #1381
Note: I may have missed them, but I didn't see any tests for PromisePoolCluster to update or add to with this change.