Mikhail Denisenko  committed cb8c5f7

bugfix flush_sql in multiple databases

  • Participants
  • Parent commits 161e654

Comments (0)

Files changed (1)

File django_pytds/

         # Cannot use TRUNCATE on tables that are referenced by a FOREIGN KEY; use DELETE instead.
         # (which is slow)
-        from django.db import connection
-        cursor = connection.cursor()
+        cursor = self.connection.cursor()
         # Try to minimize the risks of the braindeaded inconsistency in
         # DBCC CHEKIDENT(table, RESEED, n) behavior.
         seqs = []