Ticket #2278: django-bug-2278.patch
File django-bug-2278.patch, 830 bytes (added by , 18 years ago) |
---|
-
django/db/backends/postgresql/client.py
2 2 import os 3 3 4 4 def runshell(): 5 args = [''] 6 args += ["-U%s" % settings.DATABASE_USER] 7 if settings.DATABASE_PASSWORD: 5 args = ["-U", settings.DATABASE_USER] 6 if not settings.DATABASE_PASSWORD: 8 7 args += ["-W"] 9 8 if settings.DATABASE_HOST: 10 args += ["-h %s" % settings.DATABASE_HOST]9 args.extend(["-h", settings.DATABASE_HOST]) 11 10 if settings.DATABASE_PORT: 12 args += ["-p %s" % settings.DATABASE_PORT]11 args.extend(["-p", settings.DATABASE_PORT]) 13 12 args += [settings.DATABASE_NAME] 14 13 os.execvp('psql', args)