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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---