Bug #98494 | Contribution: implement context manager | ||
---|---|---|---|
Submitted: | 5 Feb 2020 18:42 | Modified: | 29 Jun 2020 20:16 |
Reporter: | OCA Admin (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[5 Feb 2020 18:42]
OCA Admin
[5 Feb 2020 18:42]
OCA Admin
Contribution submitted via Github - implement context manager (*) Contribution by wenfeng shih (Github 841020, mysql-connector-python/pull/56#issuecomment-576096723): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it
Contribution: git_patch_358403036.txt (text/plain), 800 bytes.
[6 Feb 2020 7:03]
MySQL Verification Team
Hello wenfeng shih, Thank you for the report and contribution. regards, Umesh
[8 Feb 2020 7:37]
wenfeng shih
hello Umesh Thank you for your greetings My idea comes from the inconvenience that I transferred from pymysql to mysql-connector-python Glad it has been assigned to an internal queue Do you mind we establish connection on linkedin? this is my linkedin https://www.linkedin.com/in/wen-feng-shih-11b23b166/ best regards, Mike
[29 Jun 2020 20:16]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/Python 8.0.21 release, and here's the proposed changelog entry from the documentation team: Implemented context management support to help allocate resources as needed. Thanks to WEN-FENG SHIH for the patch. Thank you for the bug report. Note: context manager supported was also added for connections and sessions.