                  raise Exception('Unable to determine MySQL version from version string %r' % self.connection.get_server_info())
              self.server_version = tuple([int(x) for x in m.groups()])
          return self.server_version
  
  allows_group_by_ordinal = True
  allows_unique_and_pk = True
  autoindexes_primary_keys = False
  needs_datetime_string_cast = True     # MySQLdb requires a typecast for dates
  needs_upper_for_iops = False
  supports_constraints = True
  supports_tablespaces = False
  uses_case_insensitive_names = False
  
  OPERATOR_MAPPING = {
      'exact': '= %s',
      'iexact': 'LIKE %s',
      'contains': 'LIKE BINARY %s',
      'icontains': 'LIKE %s',
 
</s> remove allows_group_by_ordinal = True
allows_unique_and_pk = True
autoindexes_primary_keys = False
needs_datetime_string_cast = True     # MySQLdb requires a typecast for dates
needs_upper_for_iops = False
supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False

 </s> add  </s> remove allows_group_by_ordinal = True
allows_unique_and_pk = True
autoindexes_primary_keys = True
needs_datetime_string_cast = True
needs_upper_for_iops = False
supports_constraints = True
supports_tablespaces = True
uses_case_insensitive_names = False

 </s> add  </s> remove allows_group_by_ordinal = True
allows_unique_and_pk = True
autoindexes_primary_keys = True
needs_datetime_string_cast = False
needs_upper_for_iops = False
supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False

 </s> add  </s> remove allows_group_by_ordinal = True
allows_unique_and_pk = True
autoindexes_primary_keys = True
needs_datetime_string_cast = True
needs_upper_for_iops = False
supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False

 </s> add  </s> remove allows_group_by_ordinal = True
allows_unique_and_pk = True
autoindexes_primary_keys = True
needs_datetime_string_cast = True
needs_upper_for_iops = False
supports_constraints = False
supports_tablespaces = False
uses_case_insensitive_names = False

 </s> add 
                  raise Exception('Unable to determine MySQL version from version string %r' % self.connection.get_server_info())
              self.server_version = tuple([int(x) for x in m.groups()])
          return self.server_version
  









  OPERATOR_MAPPING = {
      'exact': '= %s',
      'iexact': 'LIKE %s',
      'contains': 'LIKE BINARY %s',
      'icontains': 'LIKE %s',
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Implemented BaseDatabaseFeatures and changed all code to access it -- connection.features.foo instead of backend.foo

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5974 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/db/backends/mysql/base.py