Ticket #8102: 8102-2.diff
File 8102-2.diff, 1.0 KB (added by , 16 years ago) |
---|
-
django/db/backends/mysql/base.py
145 145 features = DatabaseFeatures() 146 146 ops = DatabaseOperations() 147 147 operators = { 148 'exact': '= BINARY %s',148 'exact': '= CAST(%s AS CHAR) COLLATE UTF8_BIN', 149 149 'iexact': 'LIKE %s', 150 'contains': 'LIKE BINARY %s',150 'contains': 'LIKE %s COLLATE UTF8_BIN', 151 151 'icontains': 'LIKE %s', 152 'regex': 'REGEXP BINARY %s',152 'regex': 'REGEXP %s COLLATE UTF8_BIN', 153 153 'iregex': 'REGEXP %s', 154 154 'gt': '> %s', 155 155 'gte': '>= %s', 156 156 'lt': '< %s', 157 157 'lte': '<= %s', 158 'startswith': 'LIKE BINARY %s',159 'endswith': 'LIKE BINARY %s',158 'startswith': 'LIKE %s COLLATE UTF8_BIN', 159 'endswith': 'LIKE %s COLLATE UTF8_BIN', 160 160 'istartswith': 'LIKE %s', 161 161 'iendswith': 'LIKE %s', 162 162 }