Commit 0573120c authored by Shai Berger's avatar Shai Berger
Browse files

[1.6.x] Made Oracle introspect boolean fields

Refs #19884

Backport of ad975c64 from master
parent 05cef193
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,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: