mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #22738 -- made finer distinctions for when Boolean is not detected on Oracle
Thanks Claude Paroz for partial fix and Simon Charrette for review
This commit is contained in:
parent
dbdae3a755
commit
c1ae0621ba
5 changed files with 40 additions and 22 deletions
|
@ -314,7 +314,7 @@ class SchemaTests(TransactionTestCase):
|
|||
columns = self.column_classes(Author)
|
||||
# BooleanField are stored as TINYINT(1) on MySQL.
|
||||
field_type = columns['awesome'][0]
|
||||
self.assertEqual(field_type, connection.features.introspected_boolean_field_type)
|
||||
self.assertEqual(field_type, connection.features.introspected_boolean_field_type(new_field, created_separately=True))
|
||||
|
||||
def test_add_field_default_transform(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue