Re: Does MySQLdb rollback on control-C? Maybe not.

2010-09-03 Thread Mike Kent
On Sep 3, 12:22 am, John Nagle na...@animats.com wrote:     I would expect MySQLdb to rollback on a control-C, but it doesn't seem to have done so.   Something is broken. I wouldn't expect it to, I'd expect to roll back on an exception, or commit if not. Perhaps this will help you. I use it

Re: Does MySQLdb rollback on control-C? Maybe not.

2010-09-03 Thread John Nagle
On 9/3/2010 12:41 PM, Mike Kent wrote: On Sep 3, 12:22 am, John Naglena...@animats.com wrote: I would expect MySQLdb to rollback on a control-C, but it doesn't seem to have done so. Something is broken. I wouldn't expect it to, I'd expect to roll back on an exception, or commit if

Does MySQLdb rollback on control-C? Maybe not.

2010-09-02 Thread John Nagle
I would expect MySQLdb to rollback on a control-C, but it doesn't seem to have done so. I have a program which does a thousand or so INSERT operations in one transaction on an InnoDB table. I kill it with a control-C on Windows, and it aborts. But it looks like some of the INSERT