Revision history [back]
I had this problem some time ago during a migration, it came from psycopg2 (the transaction began, but was neither commited nor rollbacked because there was a problem)
For me, it solved itself with another migration with some sql manipulations (but it was because the db I had to migrate was from 1 year ago with mysql ...)
Actually, I can't say anything other than try to find what failed in your queries, sorry ...