From b6ad9998e6436e81f7dfbf1961a147d00816fb1f Mon Sep 17 00:00:00 2001 From: Shai Berger Date: Sun, 19 May 2013 17:08:00 +0300 Subject: [PATCH] Fixed #20453 -- inspectdb test failure on Oracle --- django/db/backends/oracle/introspection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 608901f081..58d25eeffd 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -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