Skip to content

Commit

Permalink
Made main user disconnect after creating test user/tablespaces on Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
shaib committed Aug 25, 2014
1 parent e0cf030 commit 4c85a0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/db/backends/oracle/creation.py
Expand Up @@ -120,6 +120,8 @@ def _create_test_db(self, verbosity=1, autoclobber=False, keepdb=False):
print("Tests cancelled.")
sys.exit(1)

self.connection.close() # done with main user -- test user and tablespaces created

real_settings = settings.DATABASES[self.connection.alias]
real_settings['SAVED_USER'] = self.connection.settings_dict['SAVED_USER'] = self.connection.settings_dict['USER']
real_settings['SAVED_PASSWORD'] = self.connection.settings_dict['SAVED_PASSWORD'] = self.connection.settings_dict['PASSWORD']
Expand Down

0 comments on commit 4c85a0d

Please sign in to comment.