Ticket #10390: exact_null_safe.diff

File exact_null_safe.diff, 497 bytes (added by Rick Dean, 16 years ago)
  • db/backends/mysql/base.py

    class DatabaseOperations(BaseDatabaseOpe  
    216217class DatabaseWrapper(BaseDatabaseWrapper):
    217218
    218219    operators = {
    219         'exact': '= %s',
     220        'exact': '<=> %s',  # null-safe equal to
    220221        'iexact': 'LIKE %s',
    221222        'contains': 'LIKE BINARY %s',
    222223        'icontains': 'LIKE %s',
Back to Top