#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

     
    Attachments
  • 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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks