1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

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
This commit is contained in:
Jacob Kaplan-Moss 2006-04-05 15:21:36 +00:00
parent fcea8ed021
commit 3825cb0a7d

View File

@ -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':