Bug #106632 | Connector/Python >= 8.0.20 no longer accepts tuple as "failover" argument | ||
---|---|---|---|
Submitted: | 3 Mar 2022 16:29 | Modified: | 29 Apr 2022 20:18 |
Reporter: | Ville Skyttä | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 8.0.20, 8.0.28 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[3 Mar 2022 16:29]
Ville Skyttä
[4 Mar 2022 9:09]
MySQL Verification Team
Hello Ville Skyttä, Thank you for the report and feedback. Verified as described. regards, Umesh
[21 Apr 2022 15:13]
Nuno Mariz
Posted by developer: This patch fixes this issue by applying the sorted() function instead of using the sort() method in the failover argument, for sorting the servers by priority. Thank you for your contribution.
[29 Apr 2022 20:18]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/Python 8.0.30 release, and here's the proposed changelog entry from the documentation team: --- The connect()'s failover argument now accepts a tuple, as was documented, when previously it only accepted a list of dictionaries. Thanks to Ville Skyttä for the patch. --- Thank you for the bug report.