[sqlalchemy] TIMEDIFF and SQLAlchemy

2010-11-17 Thread Christian Démolis
Hi, Do you know how to do this query with sqlalchemy? *SELECT Id, TIMEDIFF( End, Start) FROM plage WHERE TIMEDIFF(End,Start)=TIME('02:20:00');* In my model, Start and End are DateTime Start = Column('Start', DateTime) End = Column('End', DateTime) -- You received this message because you

Re: [sqlalchemy] TIMEDIFF and SQLAlchemy

2010-11-17 Thread akm
, 2010 at 4:36 PM, Christian Démolis christiandemo...@gmail.com wrote: Hi, Do you know how to do this query with sqlalchemy? SELECT Id,  TIMEDIFF( End, Start) FROM plage WHERE TIMEDIFF(End,Start)=TIME('02:20:00'); In my model, Start and End are DateTime Start = Column('Start', DateTime