Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 3825cb0a7d2a686aa24d7c3bd2208c2ece0a3e87 1 parent fcea8ed
@jacobian jacobian authored
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':
Please sign in to comment.
Something went wrong with that request. Please try again.