>
> Yeah, I kind of suspected MySQLdb might have problems here.  You need to 
> file a bug report with the DBAPI's bug tracker:
> http://sourceforge.net/tracker/?group_id=22307&atid=374932
>

I didn't see anything on the subject of fractional second support but I 
ended up getting the insert working by the format_TIME function in 
/MySQLdb/times.py to process microseconds:

def format_TIMEDELTA(v):

    microseconds = v.microseconds
    seconds = float(v.seconds) % 60
    minutes = int(v.seconds / 60) % 60
    hours = int(v.seconds / 3600) % 24

    return '%d %d:%d:%d.%d' % (v.days, hours, minutes, seconds, 
microseconds)

Thank you for your help with the SQLalchemy side of things, redefining how 
the DDL is emitted for the type and whatnot. Hopefully we can see these 
changes in future releases of the 0.7 series.

--James

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/9u5Yiq9v6LMJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to