Menu

#2 TypeError: object of type 'datetime.timedelta' has no len()

open
nobody
None
5
2010-05-15
2010-05-15
joa
No

I get an error whet datetime.timedelta hast to be printed from a query.
How to reproduce it (tested on 0.14)
As sysman try:
select * from dba_scheduler_job_run_details ;

you'll get:
File ".../pysql-0.14/src/pysql/pysqlhelpers.py", line 106, in itemLength
return len(item)
TypeError: object of type 'datetime.timedelta' has no len()

I make a hack to avoid it on the print function, but i guess is not a good solution.
Cheers!
Joaquín

Discussion


Log in to post a comment.