Menu

#110 Fixed date mapping problem

MySQLdb-1.1
closed
MySQLdb (285)
1
2012-09-19
2004-10-20
No

Look at the patch and then consider this:

from datetime import datetime, timedelta
type(datetime), type(timedelta), type(timedelta) is
type(datetime)
(<type 'type'="">, <type 'type'="">, True)

Now consider the conversion map

conversions = {
types.IntType: Thing2Str,
...
DateTimeType: DateTime2literal,
DateTimeDeltaType: DateTimeDelta2literal,
...
}

So we were all just lucky that DateTime2literal and
DateTimeDelta2literal aren't needed in the pydatetime
case :-)

Discussion

  • Brian Quinlan

    Brian Quinlan - 2004-10-20

    unified diff

     
  • Andy Dustman

    Andy Dustman - 2005-01-23

    Logged In: YES
    user_id=71372

    Pretty sure this is fixed for awhile now; reopen if you fix
    otherwise.

     

Log in to post a comment.