Fixed #27282 -- Allowed using an integer DATABASES['PORT'] for Oracle.
This commit is contained in:
parent
14986a0b9d
commit
62543260dd
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue