On Wednesday, November 24, 2010 05:10:28 pm Adrian Klaver wrote:
> On Wednesday 24 November 2010 2:41:06 pm John Fabiani wrote:
> > I should have said -  are you sure postgres is return the string
> > "timedelta"? I would have expected "interval"
> > 
> > Johnf
> 
> My guess is that the answer lies here:
> 
> http://initd.org/psycopg/docs/advanced.html#type-casting-of-sql-types-into-
> python-objects
> 
> As it stands now psycopg2 takes interval values passed to it from the db
> and typecasts them to timedelta and does the reverse when you submit them
> back to the db. I believe it would be possible using the mechanism above
> to override that behavior and just let the interval string through. What I
> am not sure of yet is the interaction of any new adapter/typecast combo
> with the existing interval mechanism. Experimentation is under way, ignore
> any loud sounds or smoke :)


LOL :-)  

go for it - I'm buried in work for the moment and can't take the time.

Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to