Skip to content

Commit 9306dcc

Browse files
committed
skip marked as auth_increment but not primary, for now
1 parent f504dd2 commit 9306dcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_iris/introspection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def get_table_description(self, cursor, table_name):
8080
FROM INFORMATION_SCHEMA.COLUMNS
8181
WHERE TABLE_SCHEMA = %s
8282
AND TABLE_NAME = %s
83+
AND NOT (AUTO_INCREMENT = 'YES' AND PRIMARY_KEY = 'NO')
8384
ORDER BY ORDINAL_POSITION
8485
""",
8586
schema_name(table_name)

0 commit comments

Comments
 (0)