mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #31630 -- Added CharField and IntegerField to DatabaseFeatures.introspected_field_types.
CockroachDB introspects CharField as TextField and IntegerField as BigIntegerField.
This commit is contained in:
parent
e24b63fe85
commit
a7b4a04d6c
4 changed files with 53 additions and 43 deletions
|
@ -80,15 +80,12 @@ class IntrospectionTests(TransactionTestCase):
|
|||
self.assertEqual(
|
||||
[connection.introspection.get_field_type(r[1], r) for r in desc],
|
||||
[
|
||||
connection.features.introspected_field_types['AutoField'],
|
||||
'CharField',
|
||||
'CharField',
|
||||
'CharField',
|
||||
connection.features.introspected_field_types['BigIntegerField'],
|
||||
connection.features.introspected_field_types['BinaryField'],
|
||||
connection.features.introspected_field_types['SmallIntegerField'],
|
||||
connection.features.introspected_field_types['DurationField'],
|
||||
]
|
||||
connection.features.introspected_field_types[field] for field in (
|
||||
'AutoField', 'CharField', 'CharField', 'CharField',
|
||||
'BigIntegerField', 'BinaryField', 'SmallIntegerField',
|
||||
'DurationField',
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
def test_get_table_description_col_lengths(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue