Michael Manfre avatar Michael Manfre committed 21215d6

Enabled 'can_introspect_autofield' DatabaseFeature.

Comments (0)

Files changed (3)

docs/changelog.txt

 - Fixed issue with identity insert using a cursor to the wrong database in a multi-database environment. Thanks Mikhail 
   Denisenko
 - Fixed constraint checking. :issue:`35` Thanks Mikhail Denisenko
+- Enabled ``can_introspect_autofield`` database feature. :djangoticket:`21097`
 
 v1.3.1
 ------

sqlserver_ado/base.py

     
     ignores_nulls_in_unique_constraints = False
 
+    can_introspect_autofield = True
 
 def is_ip_address(value):
     """

sqlserver_ado/introspection.py

 MONEY_FIELD_MARKER = -1002
 
 class DatabaseIntrospection(BaseDatabaseIntrospection):
-
     def get_table_list(self, cursor):
         "Return a list of table and view names in the current database."
         cursor.execute("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' UNION SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.