From d0ec43298a4c55917a9ef1830bb7fe2877bef7c3 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 15 Nov 2005 05:52:25 +0000 Subject: [PATCH] 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 --- django/core/db/backends/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: