Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2031 closed defect (fixed)

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

Reported by: jason@… Owned by: Adrian Holovaty
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: no UI/UX: no

Description

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@… 18 years ago.
mysql_microsecond.2.patch (676 bytes ) - added by jason@… 18 years ago.
Fixed typo in comment.

Download all attachments as: .zip

Change History (3)

by jason@…, 18 years ago

Attachment: mysql_microsecond.patch added

by jason@…, 18 years ago

Attachment: mysql_microsecond.2.patch added

Fixed typo in comment.

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(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