Ticket #1356: mysql.4_1.unicode.diff
File mysql.4_1.unicode.diff, 831 bytes (added by , 18 years ago) |
---|
-
django/db/backends/mysql/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 101 if self.connection.get_server_info() >= '4.1': 102 self.connection.charset = 'utf8' 103 cursor = self.connection.cursor() 103 104 cursor.execute("SET NAMES 'utf8'") 105 else: 106 cursor = self.connection.cursor() 107 104 108 else: 105 109 cursor = self.connection.cursor() 106 110 if settings.DEBUG: