Ticket #9274: mysqldb_changes.diff
File mysqldb_changes.diff, 709 bytes (added by , 16 years ago) |
---|
-
django/db/backends/mysql/base.py
260 260 kwargs['port'] = int(settings.DATABASE_PORT) 261 261 kwargs.update(self.options) 262 262 self.connection = Database.connect(**kwargs) 263 if version[1] > 2: 264 # the api changed as of 1.3.0 265 self.connection.get_server_info = self.connection._db.get_server_info 266 self.connection.ping = self.connection._db.ping 263 267 cursor = CursorWrapper(self.connection.cursor()) 264 268 return cursor 265 269