Ticket #9274: mysqldb_changes.diff

File mysqldb_changes.diff, 709 bytes (added by Dave St.Germain <david.st-germain@…>, 16 years ago)
  • django/db/backends/mysql/base.py

     
    260260                kwargs['port'] = int(settings.DATABASE_PORT)
    261261            kwargs.update(self.options)
    262262            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
    263267        cursor = CursorWrapper(self.connection.cursor())
    264268        return cursor
    265269
Back to Top