mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Made main user disconnect after creating test user/tablespaces on Oracle
This commit is contained in:
		| @@ -120,6 +120,8 @@ class DatabaseCreation(BaseDatabaseCreation): | ||||
|                     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'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user