Christoph Zwerschke schrieb:
> Btw, I was trying to run the MiddleKit test suite, but I get many
> errors. For instance when running "python Test.py MKDelete" I get a
> "Lock wait timeout exceeded" (this hasn't anything to do with the lock
> in the patch, I get it also without your patch).
I had another look at the MiddleKit tests and found that the problems
are all caused by the fact that newer MySQLdb versions have autocommit
disabled by default. MiddleKit however (at least the whole test suite)
assumes autocommit is switched on.
I have now patched MySQLObjectStore so that autocommit is explicitly
activated for all MySQLDB connections, including those coming from a
connection pool. I have also added an autocommit flag to the storeArgs,
so you can also still disable the autocommit if you like.
All MiddleKit tests are now runing for me.