Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit d0ec43298a4c55917a9ef1830bb7fe2877bef7c3 1 parent 065dd33
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/db/backends/postgresql.py
View
2  django/core/db/backends/postgresql.py
@@ -24,7 +24,7 @@ def cursor(self):
if DATABASE_USER:
conn_string = "user=%s %s" % (DATABASE_USER, conn_string)
if DATABASE_PASSWORD:
- conn_string += " password=%s" % DATABASE_PASSWORD
+ conn_string += " password='%s'" % DATABASE_PASSWORD
if DATABASE_HOST:
conn_string += " host=%s" % DATABASE_HOST
if DATABASE_PORT:
Please sign in to comment.
Something went wrong with that request. Please try again.