summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2005-11-15 05:52:25 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2005-11-15 05:52:25 +0000
commitd0ec43298a4c55917a9ef1830bb7fe2877bef7c3 (patch)
tree7c1b506a92209b00f97c0109822a1e8a6178f990
parent065dd334de34940a7703b09bbbd4567b55d10598 (diff)
downloaddjango-d0ec43298a4c55917a9ef1830bb7fe2877bef7c3.tar.gz
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
-rw-r--r--django/core/db/backends/postgresql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/db/backends/postgresql.py b/django/core/db/backends/postgresql.py
index 1db6fe40c3..b1b2d9cb52 100644
--- a/django/core/db/backends/postgresql.py
+++ b/django/core/db/backends/postgresql.py
@@ -24,7 +24,7 @@ class DatabaseWrapper:
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: