mirror of
https://github.com/django/django.git
synced 2025-02-28 11:34:28 +00:00
Made Oracle introspect boolean fields
Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean Refs #19884
This commit is contained in:
parent
8b2c1ac06d
commit
ad975c64fc
@ -36,6 +36,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||||||
if data_type == cx_Oracle.NUMBER and description[5] == 0:
|
if data_type == cx_Oracle.NUMBER and description[5] == 0:
|
||||||
if description[4] > 11:
|
if description[4] > 11:
|
||||||
return 'BigIntegerField'
|
return 'BigIntegerField'
|
||||||
|
elif description[4]==1:
|
||||||
|
return 'BooleanField'
|
||||||
else:
|
else:
|
||||||
return 'IntegerField'
|
return 'IntegerField'
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user