Django

Code

Ticket #2031 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: jason@pengale.com Assigned to: adrian
Milestone: Component: Database layer (models, ORM)
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

mysql_microsecond.patch (0.8 kB) - added by jason@pengale.com on 05/29/06 19:54:43.
mysql_microsecond.2.patch (0.7 kB) - added by jason@pengale.com on 05/29/06 19:58:16.
Fixed typo in comment.

Change History

05/29/06 19:54:43 changed by jason@pengale.com

  • attachment mysql_microsecond.patch added.

05/29/06 19:58:16 changed by jason@pengale.com

  • attachment mysql_microsecond.2.patch added.

Fixed typo in comment.

06/20/06 23:13:48 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2031 ([patch] updating a DateTimeField with just a date causes exception w/ mysql)




Change Properties
Action