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:
parent
fcea8ed021
commit
3825cb0a7d
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user