"一首诗" <[EMAIL PROTECTED]> writes: > I wrote something like this with mysql as the back end. > > @expose() > def func(self, xxx): > hub.begin() > #Do some update > hub.commit() > hub.end() > > Then something string happened! > > The debug info show that a rollback was called immediately after the > commit and no change really happened. > > Does any one know why it happens? > > Of course I can set auto commit to be true. But still I want to have > transaction in my code.
All exposed methods in 0.9+ are wrapped with an implicit transaction to avoid some caching problems with SQL Object. If you send more information -- such as output from TG logs and from your RDBMS logs we can help more. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

