Commit ad975c64 authored by Shai Berger's avatar Shai Berger
Browse files

Made Oracle introspect boolean fields

Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean
Refs #19884
parent 8b2c1ac0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
        if data_type == cx_Oracle.NUMBER and description[5] == 0:
            if description[4] > 11:
                return 'BigIntegerField'
            elif description[4]==1:
                return 'BooleanField'
            else:
                return 'IntegerField'
        else: