mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #21097 - Added DatabaseFeature.can_introspect_autofield
This commit is contained in:
parent
6feb75129f
commit
c89d80e2cc
4 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue