Ticket #3151: 3151.diff
File 3151.diff, 814 bytes (added by , 18 years ago) |
---|
-
base.py
98 98 kwargs['port'] = int(settings.DATABASE_PORT) 99 99 kwargs.update(self.options) 100 100 self.connection = Database.connect(**kwargs) 101 cursor = self.connection.cursor() 102 if self.connection.get_server_info() >= '4.1': 103 cursor.execute("SET NAMES 'utf8'") 101 cursor = self.connection.cursor() 102 if self.connection.get_server_info() >= '4.1': 103 cursor.execute("SET NAMES 'utf8'") 104 else: 105 cursor = self.connection.cursor() 104 106 if settings.DEBUG: 105 107 return util.CursorDebugWrapper(MysqlDebugWrapper(cursor), self) 106 108 return cursor