mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed schema test for Oracle 11.2.0.1 which is used in Django Project's CI.
Refs #23073 Workaround. Refs #22738 Repeats the mysql "offense". When the issue is solved, the Oracle special case should be made to play with the solution (that is, Oracle should be fixed the same way that mysql and the 3rd-party backneds are).
This commit is contained in:
@@ -318,6 +318,9 @@ class SchemaTests(TransactionTestCase):
|
||||
if connection.vendor == 'mysql':
|
||||
self.assertEqual(field_type, 'IntegerField')
|
||||
self.assertEqual(field_info.precision, 1)
|
||||
elif connection.vendor == 'oracle' and connection.version_has_default_introspection_bug:
|
||||
self.assertEqual(field_type, 'IntegerField')
|
||||
self.assertEqual(field_info.precision, 0)
|
||||
else:
|
||||
self.assertEqual(field_type, 'BooleanField')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user