Ticket #2170: fix-for-mysql-case-sensitivity.diff

File fix-for-mysql-case-sensitivity.diff, 972 bytes (added by anonymous, 8 years ago)
  • django/db/backends/mysql_old/base.py

     
    132132    features = DatabaseFeatures()
    133133    ops = DatabaseOperations()
    134134    operators = {
    135         'exact': '= %s',
     135        'exact': '= BINARY %s',
    136136        'iexact': 'LIKE %s',
    137137        'contains': 'LIKE BINARY %s',
    138138        'icontains': 'LIKE %s',
  • django/db/backends/mysql/base.py

     
    128128    features = DatabaseFeatures()
    129129    ops = DatabaseOperations()
    130130    operators = {
    131         'exact': '= %s',
     131        'exact': '= BINARY %s',
    132132        'iexact': 'LIKE %s',
    133133        'contains': 'LIKE BINARY %s',
    134134        'icontains': 'LIKE %s',
Back to Top