Ticket #6523: iexact.patch

File iexact.patch, 953 bytes (added by charlie@…, 11 years ago)

Updated iexact patch, against r7566. Supports postgresql and psycopg2_postgresql backends.

  • db/backends/postgresql/base.py

     
    6767    ops = DatabaseOperations()
    6868    operators = {
    6969        'exact': '= %s',
    70         'iexact': 'ILIKE %s',
     70        'iexact': '::text ILIKE %s',
    7171        'contains': 'LIKE %s',
    7272        'icontains': 'ILIKE %s',
    7373        'regex': '~ %s',
  • db/backends/postgresql_psycopg2/base.py

     
    3535    ops = DatabaseOperations()
    3636    operators = {
    3737        'exact': '= %s',
    38         'iexact': 'ILIKE %s',
     38        'iexact': '::text ILIKE %s',
    3939        'contains': 'LIKE %s',
    4040        'icontains': 'ILIKE %s',
    4141        'regex': '~ %s',
Back to Top