On Sunday, November 22, 2015 at 4:29:00 AM UTC-5, Annet wrote: > > I had this from the web2py book: > > db(db.person.id > 3).update(name='Ken') > > > and adapted it to update records in an event list: > > db(db.cal_event_list.id > 0).update(createdOn = > db.cal_event_list.createdOn + datetime.timedelta(hours=1)) >
Which database do you use? With SQLite, that would generate the following SQL: SET createdOn=(CAST(call_event_list.createdOn AS TEXT) || '1:00:00') which I don't think is what you want. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.