Ticket #10125: 10125.diff
File 10125.diff, 861 bytes (added by , 16 years ago) |
---|
-
django/db/backends/oracle/base.py
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,