          cursor.execute("ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD'")
          cursor.execute("ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS.FF'")
          return cursor
  
  allows_group_by_ordinal = False
  allows_unique_and_pk = False        # Suppress UNIQUE/PK for Oracle (ORA-02259)
  autoindexes_primary_keys = True
  needs_datetime_string_cast = False
  needs_upper_for_iops = True
  supports_constraints = True
  supports_tablespaces = True
  uses_case_insensitive_names = True
  
  class FormatStylePlaceholderCursor(Database.Cursor):
      """
      Django uses "format" (e.g. '%s') style placeholders, but Oracle uses ":var"
      style. This fixes it -- but note that if you want to use a literal "%s" in
      a query, you'll need to use "%%s".
 
</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  </s> remove         needs_datetime_string_cast = backend.needs_datetime_string_cast
 </s> add         needs_datetime_string_cast = connection.features.needs_datetime_string_cast
          cursor.execute("ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD'")
          cursor.execute("ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS.FF'")
          return cursor
  









  class FormatStylePlaceholderCursor(Database.Cursor):
      """
      Django uses "format" (e.g. '%s') style placeholders, but Oracle uses ":var"
      style. This fixes it -- but note that if you want to use a literal "%s" in
      a query, you'll need to use "%%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/oracle/base.py