Commit e3d64c6f authored by Ian Kelly's avatar Ian Kelly
Browse files

Fixed #10125: fixed the Oracle dsn construction code that was broken in [9712].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 81ae2afd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -253,8 +253,8 @@ class DatabaseWrapper(BaseDatabaseWrapper):
        if len(settings.DATABASE_HOST.strip()) == 0:
            settings.DATABASE_HOST = 'localhost'
        if len(settings.DATABASE_PORT.strip()) != 0:
            dsn = '%s:%s/%s' % (settings.DATABASE_HOST,
                                settings.DATABASE_PORT,
            dsn = Database.makedsn(settings.DATABASE_HOST,
                                   int(settings.DATABASE_PORT),
                                   settings.DATABASE_NAME)
        else:
            dsn = settings.DATABASE_NAME