Re: MySQL timediff and datetime.timedelta

2008-09-03 Thread Jens Grivolla
On Sep 2, 12:55 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-02 at 03:16 -0700, JensGrivollawrote: > > I am getting weird results using django.db to do a "select > > timediff(a,b)..." query from MySQL. The result is a datetime.datetime > > object instead of a

Re: MySQL timediff and datetime.timedelta

2008-09-02 Thread Malcolm Tredinnick
On Tue, 2008-09-02 at 03:16 -0700, Jens Grivolla wrote: > Hi, > > I am getting weird results using django.db to do a "select > timediff(a,b)..." query from MySQL. The result is a datetime.datetime > object instead of a datetime.timedelta. When using MySQLdb directly, > it returns the expected

MySQL timediff and datetime.timedelta

2008-09-02 Thread Jens Grivolla
Hi, I am getting weird results using django.db to do a "select timediff(a,b)..." query from MySQL. The result is a datetime.datetime object instead of a datetime.timedelta. When using MySQLdb directly, it returns the expected timedelta object. The code is exactly identical in both cases other