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

Fixed #20453 -- inspectdb test failure on Oracle

parent 5d164569
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
        description = []
        for desc in cursor.description:
            name = force_text(desc[0]) # cx_Oracle always returns a 'str' on both Python 2 and 3
            name = name % {} # cx_Oracle, for some reason, doubles percent signs.
            description.append(FieldInfo(*(name.lower(),) + desc[1:]))
        return description