From 3825cb0a7d2a686aa24d7c3bd2208c2ece0a3e87 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 5 Apr 2006 15:21:36 +0000 Subject: [PATCH] magic-removal: fixed #618 -- the mysql backend now tolerates strings in DATABASE_PORT git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2614 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/mysql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 9d716666a3..c33c60db31 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -79,7 +79,7 @@ class DatabaseWrapper(local): 'conv': django_conversions, } if settings.DATABASE_PORT: - kwargs['port'] = settings.DATABASE_PORT + kwargs['port'] = int(settings.DATABASE_PORT) self.connection = Database.connect(**kwargs) cursor = self.connection.cursor() if self.connection.get_server_info() >= '4.1':