Commits

Michael Manfre  committed eff1ed2

Ensure master connection connects to the correct database name when TEST_NAME is not defined

  • Participants
  • Parent commits fe75a30

Comments (0)

Files changed (1)

File sqlserver_ado/creation.py

         from base import DatabaseWrapper
         
         master_settings = self.connection.settings_dict
+        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)