Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.7.x] Made main user disconnect after creating test user/tablespace…

…s on Oracle

Backport of 4c85a0d from master
  • Loading branch information...
commit 5d2b4669e8e1bf61d6f3cc33326097507755c706 1 parent 187ee0a
@shaib shaib authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/backends/oracle/creation.py
View
2  django/db/backends/oracle/creation.py
@@ -116,6 +116,8 @@ def _create_test_db(self, verbosity=1, autoclobber=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']
Please sign in to comment.
Something went wrong with that request. Please try again.