Ticket #9972: client.py.diff

File client.py.diff, 695 bytes (added by lijinguo@…, 16 years ago)
  • django/db/backends/oracle/client.py

     
    99        dsn = settings.DATABASE_USER
    1010        if settings.DATABASE_PASSWORD:
    1111            dsn += "/%s" % settings.DATABASE_PASSWORD
     12        if settings.DATABASE_HOST:
     13            dsn += "@//%s" % settings.DATABASE_HOST
    1214        if settings.DATABASE_NAME:
    13             dsn += "@%s" % settings.DATABASE_NAME
     15            dsn += "/%s" % settings.DATABASE_NAME
    1416        args = [self.executable_name, "-L", dsn]
    1517        os.execvp(self.executable_name, args)
Back to Top