Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2031 closed defect (fixed)

[patch] updating a DateTimeField with just a date causes exception w/ mysql

Reported by: jason@… Owned by: adrian
Component: Database layer (models, ORM) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Since [497] added a special case to remove microseconds (which mysql does not support) from updated DateTimeField values, an exception is thrown when a value is used that does not have any microseconds (a date). See also #316.

Attachments (2)

mysql_microsecond.patch (789 bytes) - added by jason@… 10 years ago.
mysql_microsecond.2.patch (676 bytes) - added by jason@… 10 years ago.
Fixed typo in comment.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by jason@…

Changed 10 years ago by jason@…

Fixed typo in comment.

comment:1 Changed 10 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [3183]) Fixed #2031 -- Don't try to remove microseconds on date objects (only datetime)
for MySQL. Refs #316.

Note: See TracTickets for help on using tickets.
Back to Top