Bug #72732 | time variable (TimeField) with 00:00:00 value converts to NULL in the SQL | ||
---|---|---|---|
Submitted: | 23 May 2014 22:06 | Modified: | 26 Jun 2014 17:21 |
Reporter: | Sergey Stepanov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S2 (Serious) |
Version: | mysql-connector-python==1.1.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | django timefield |
[23 May 2014 22:06]
Sergey Stepanov
[23 May 2014 22:13]
Sergey Stepanov
it's actual only for python version less than 3.5 in 3.5 they are fixing boolean midnight behavior http://hg.python.org/cpython/rev/89aa669dcc61/
[11 Jun 2014 11:14]
Peeyush Gupta
Thank you for the report. Verified as described using code analysis.
[26 Jun 2014 17:21]
Paul DuBois
Noted in 1.2.3 changelog. Django TimeField values of 00:00:00 were incorrectly converted to NULL because Python considered that value equal to False.
[11 Jul 2014 14:25]
Paul DuBois
Posted by developer: Noted in 2.0.0 changelog.