Fixed #27282 -- Allowed using an integer DATABASES['PORT'] for Oracle.

This commit is contained in:
Zapelini 2016-09-27 16:01:30 -03:00 committed by Tim Graham
parent 14986a0b9d
commit 62543260dd
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
settings_dict = self.settings_dict
if not settings_dict['HOST'].strip():
settings_dict['HOST'] = 'localhost'
if settings_dict['PORT'].strip():
if settings_dict['PORT']:
dsn = Database.makedsn(settings_dict['HOST'],
int(settings_dict['PORT']),
settings_dict['NAME'])