Commits

charettes committed 0da6aa9

Make sure to always drop the DDL_TRANSACTION_TEST table

Comments (0)

Files changed (1)

south/db/generic.py

         try:
             cursor.execute('CREATE TABLE DDL_TRANSACTION_TEST (X INT)')
         except DatabaseError:
-            cursor.execute('DROP TABLE DDL_TRANSACTION_TEST')
             return False
         else:
             return True
+        finally:
+            cursor.execute('DROP TABLE DDL_TRANSACTION_TEST')
 
     def __init__(self, db_alias):
         self.debug = False