Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #10125: fixed the Oracle dsn construction code that was…

… broken in [9712]. Backport of [9812] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b0fd405c28cea9edb1a91416b540eed3eba0bfac 1 parent 962f0db
Ian Kelly authored February 03, 2009

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/db/backends/oracle/base.py
6  django/db/backends/oracle/base.py
@@ -253,9 +253,9 @@ def _connect_string(self, settings):
253 253
         if len(settings.DATABASE_HOST.strip()) == 0:
254 254
             settings.DATABASE_HOST = 'localhost'
255 255
         if len(settings.DATABASE_PORT.strip()) != 0:
256  
-            dsn = '%s:%s/%s' % (settings.DATABASE_HOST,
257  
-                                settings.DATABASE_PORT,
258  
-                                settings.DATABASE_NAME)
  256
+            dsn = Database.makedsn(settings.DATABASE_HOST,
  257
+                                   int(settings.DATABASE_PORT),
  258
+                                   settings.DATABASE_NAME)
259 259
         else:
260 260
             dsn = settings.DATABASE_NAME
261 261
         return "%s/%s@%s" % (settings.DATABASE_USER,

0 notes on commit b0fd405

Please sign in to comment.
Something went wrong with that request. Please try again.