-
Notifications
You must be signed in to change notification settings - Fork 90
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
change deprecated parameter pw and db #177
change deprecated parameter pw and db #177
Conversation
16cd98d
to
34bcbce
Compare
Codecov Report
@@ Coverage Diff @@
## main #177 +/- ##
==========================================
- Coverage 76.92% 75.80% -1.13%
==========================================
Files 20 20
Lines 1794 1810 +16
Branches 439 449 +10
==========================================
- Hits 1380 1372 -8
- Misses 268 287 +19
- Partials 146 151 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@ziegenberg thanks for working on this! @Jorge-Rodriguez as I remember you implemented very good checks for mysql versions. Maybe you have ideas on implementation? |
@Andersson007 sure, I can get on that but I'm in the middle of moving, so I can't handle it straight away. I'll give it some thought in the meanwhile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Jorge-Rodriguez sure, thanks! |
I can have a look at it on the weekend |
@ziegenberg perfect (no rush)! |
These changes are dependent on #141 |
Any updates on the PR? If it's irrelevant, please close it |
The old versions of the database plugins are no longer supported on the collection. So I have removed the conditional checks, leaving only the currently supported parameter names, unconditionally. |
@ziegenberg @Jorge-Rodriguez thanks for the contribution! |
SUMMARY
Parameters
db
andpasswd
are deprecated, usingdatabase
andpassword
is recommended by the DB-API 2.0.This MySQL collections support two connectors:
In PyMySQL the change from the short parameter to the new long-form was made with v0.6.7 (and the short forms are kept as an alias for
database
andpassword
). Warnings will be activated around 2022 (for details, see PyMySQL/PyMySQL#939).In MySQLdb the change was introduced with v1.3.8 (and the short forms are kept as an alias for
database
andpassword
).FIXES #176
ISSUE TYPE
COMPONENT NAME
module_utils
ADDITIONAL INFORMATION
This ought to be a more sensible way than #116.