From e3d64c6fca04dc8df1b6fdb8809d4d15d7f27740 Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Tue, 3 Feb 2009 22:08:57 +0000 Subject: [PATCH] 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 --- django/db/backends/oracle/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 947f5ab9494..38f51a707fa 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -253,9 +253,9 @@ 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, - settings.DATABASE_NAME) + dsn = Database.makedsn(settings.DATABASE_HOST, + int(settings.DATABASE_PORT), + settings.DATABASE_NAME) else: dsn = settings.DATABASE_NAME return "%s/%s@%s" % (settings.DATABASE_USER,