Skip to content
Browse files

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
  • Loading branch information...
1 parent fcea8ed commit 3825cb0a7d2a686aa24d7c3bd2208c2ece0a3e87 @jacobian jacobian committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/mysql/base.py
View
2 django/db/backends/mysql/base.py
@@ -79,7 +79,7 @@ def cursor(self):
'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':

0 comments on commit 3825cb0

Please sign in to comment.
Something went wrong with that request. Please try again.