Fixed bug in postgresql backend that prevented the user of passwords with spaces in them.

Use pass *phrases*, folks, they're grrrrreat!


git-svn-id: http://code.djangoproject.com/svn/django/trunk@1236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-11-15 05:52:25 +00:00
parent 065dd334de
commit d0ec43298a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class DatabaseWrapper:
if DATABASE_USER: if DATABASE_USER:
conn_string = "user=%s %s" % (DATABASE_USER, conn_string) conn_string = "user=%s %s" % (DATABASE_USER, conn_string)
if DATABASE_PASSWORD: if DATABASE_PASSWORD:
conn_string += " password=%s" % DATABASE_PASSWORD conn_string += " password='%s'" % DATABASE_PASSWORD
if DATABASE_HOST: if DATABASE_HOST:
conn_string += " host=%s" % DATABASE_HOST conn_string += " host=%s" % DATABASE_HOST
if DATABASE_PORT: if DATABASE_PORT: