mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #21097 - Added DatabaseFeature.can_introspect_autofield
This commit is contained in:
committed by
Anssi Kääriäinen
parent
6feb75129f
commit
c89d80e2cc
@@ -66,8 +66,9 @@ class IntrospectionTests(TestCase):
|
||||
# field type on MySQL
|
||||
self.assertEqual(
|
||||
[datatype(r[1], r) for r in desc],
|
||||
['IntegerField', 'CharField', 'CharField', 'CharField',
|
||||
'BigIntegerField', 'BinaryField' if connection.vendor != 'mysql' else 'TextField']
|
||||
['AutoField' if connection.features.can_introspect_autofield else 'IntegerField',
|
||||
'CharField', 'CharField', 'CharField', 'BigIntegerField',
|
||||
'BinaryField' if connection.vendor != 'mysql' else 'TextField']
|
||||
)
|
||||
|
||||
# The following test fails on Oracle due to #17202 (can't correctly
|
||||
|
||||
Reference in New Issue
Block a user