Bug #108733 | python connector will return a date object when time is 00:00:00 | ||
---|---|---|---|
Submitted: | 11 Oct 2022 7:39 | Modified: | 5 Dec 2022 23:01 |
Reporter: | Zhao Rong (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 8.0.29/8.0.30 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[11 Oct 2022 7:39]
Zhao Rong
[11 Oct 2022 8:43]
Zhao Rong
created a PR for suggested fix: https://github.com/mysql/mysql-connector-python/pull/83
[11 Oct 2022 12:23]
MySQL Verification Team
Thank you for the report and contribution. regards, Umesh
[11 Oct 2022 23:49]
OCA Admin
Contribution submitted via Github - Fix: Bug #108733 python connector will return a date object when timeā¦ (*) Contribution by Zhao Rong (Github rozhao2, mysql-connector-python/pull/83#issuecomment-1275396086): 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_1082966548.txt (text/plain), 2.09 KiB.
[13 Oct 2022 14:53]
Nuno Mariz
Posted by developer: Thank you for the contribution.
[5 Dec 2022 23:01]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/Python 8.0.32 release, and here's the proposed changelog entry from the documentation team: When using a prepared cursor, if a datetime column contained 00:00:00 as the time, a Python date object was returned instead of datetime. Thanks to Rong Zhao for the contribution. Thank you for the bug report.