1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #23748 -- Added AutoField introspection for SQLite.

This commit is contained in:
Nick Pope
2018-09-12 23:45:17 +01:00
committed by Tim Graham
parent e7f0e9b704
commit a35d2a4510
5 changed files with 22 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ class IntrospectionTests(TransactionTestCase):
def test_bigautofield(self):
with connection.cursor() as cursor:
desc = connection.introspection.get_table_description(cursor, City._meta.db_table)
self.assertIn('BigAutoField', [datatype(r[1], r) for r in desc])
self.assertIn(connection.features.introspected_big_auto_field_type, [datatype(r[1], r) for r in desc])
# Regression test for #9991 - 'real' types in postgres
@skipUnlessDBFeature('has_real_datatype')