1. Andrew Godwin
  2. south

Commits

charettes  committed 0da6aa9

Make sure to always drop the DDL_TRANSACTION_TEST table

  • Participants
  • Parent commits 11e3d95
  • Branches has-ddl-transaction-feature-detection

Comments (0)

Files changed (1)

File south/db/generic.py

View file
  • Ignore whitespace
         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