Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #20453 -- inspectdb test failure on Oracle

  • Loading branch information...
commit b6ad9998e6436e81f7dfbf1961a147d00816fb1f 1 parent 5d16456
@shaib shaib authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/db/backends/oracle/introspection.py
View
1  django/db/backends/oracle/introspection.py
@@ -50,6 +50,7 @@ def get_table_description(self, cursor, table_name):
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
Please sign in to comment.
Something went wrong with that request. Please try again.