      def make_debug_cursor(self, cursor):
          from django.db.backends import util
          return util.CursorDebugWrapper(cursor, self)
  
  class BaseDatabaseOperations(object):
      """
      This class encapsulates all backend-specific differences, such as the way
      a backend performs ordering or calculates the ID of a recently-inserted
 
</s> remove from django.db.backends import BaseDatabaseWrapper, BaseDatabaseOperations, util
 </s> add from django.db.backends import BaseDatabaseWrapper, BaseDatabaseFeatures, BaseDatabaseOperations, util </s> remove     from django.db import backend, models
 </s> add     from django.db import connection, models </s> remove from django.db.backends import BaseDatabaseWrapper, BaseDatabaseOperations, util
 </s> add from django.db.backends import BaseDatabaseWrapper, BaseDatabaseFeatures, BaseDatabaseOperations, util
class BaseDatabaseFeatures(object):
    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

      def make_debug_cursor(self, cursor):
          from django.db.backends import util
          return util.CursorDebugWrapper(cursor, self)
  
class BaseDatabaseFeatures(object):
    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

  class BaseDatabaseOperations(object):
      """
      This class encapsulates all backend-specific differences, such as the way
      a backend performs ordering or calculates the ID of a recently-inserted
keep keep keep add 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/__init__.py