Commits

Mikhail Denisenko committed 16fe68f

bugfix use_transactions->autocommit

  • Participants
  • Parent commits d0d3344

Comments (0)

Files changed (1)

django_pytds/creation.py

         if not master_settings['TEST_NAME']:
             master_settings['TEST_NAME'] = 'test_' + master_settings['NAME']
         master_settings['NAME'] = 'master'
-        return DatabaseWrapper(master_settings, use_transactions=False)
+        options = master_settings.setdefault('OPTIONS', {})
+        options['autocommit'] = True
+        return DatabaseWrapper(master_settings)
 
     def _create_test_db(self, verbosity=1, autoclobber=False):
         """