Ticket #8315: 8315.diff

File 8315.diff, 494 bytes (added by Karen Tracey, 16 years ago)

Catch ProgrammingError on attempt to rollback

  • django/db/backends/mysql/base.py

     
    225225    def _rollback(self):
    226226        try:
    227227            BaseDatabaseWrapper._rollback(self)
    228         except Database.NotSupportedError:
     228        except (Database.NotSupportedError, Database.ProgrammingError):
    229229            pass
    230230
    231231    def get_server_version(self):
Back to Top