On Thursday, 25 July 2013 11:39:23 UTC-4, Michael Bayer wrote:
But your backend isn't doing this; if you were using Postgresql for
example, it should be returning a timedelta() already. So perhaps this is
MySQL. you'd need to make a TypeDecorator that receives this integer and
does
On Monday, 29 July 2013 20:48:57 UTC-4, Matthew Pounsett wrote:
I think I understand the mechanism here... except that since this isn't a
real type (there's no data store behind this) is process_bind_param()
useful at all?
To answer my own question... yes, of course it does because it
I have a class with 'start' and 'finish' attributes which are DateTime
columns. I'm trying to create a hybrid property 'duration' which returns
the delta as a datetime.timedelta object. This is working fine for the
instance attribute, but I can't seem to get it to work for the class
On Jul 25, 2013, at 2:44 AM, Matthew Pounsett matt.pouns...@gmail.com wrote:
I have a class with 'start' and 'finish' attributes which are DateTime
columns. I'm trying to create a hybrid property 'duration' which returns the
delta as a datetime.timedelta object. This is working fine for