Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored April 05, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/mysql/base.py
2  django/db/backends/mysql/base.py
@@ -79,7 +79,7 @@ def cursor(self):
79 79
                 'conv': django_conversions,
80 80
             }
81 81
             if settings.DATABASE_PORT:
82  
-                kwargs['port'] = settings.DATABASE_PORT
  82
+                kwargs['port'] = int(settings.DATABASE_PORT)
83 83
             self.connection = Database.connect(**kwargs)
84 84
         cursor = self.connection.cursor()
85 85
         if self.connection.get_server_info() >= '4.1':

0 notes on commit 3825cb0

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