diff options
| author | Shai Berger <shai@platonix.com> | 2013-05-19 17:08:00 +0300 |
|---|---|---|
| committer | Shai Berger <shai@platonix.com> | 2013-05-22 01:52:15 +0300 |
| commit | b6ad9998e6436e81f7dfbf1961a147d00816fb1f (patch) | |
| tree | 24de510efa92038cc005b095dd132cca4ce01ddc /django | |
| parent | 5d164569916b44e476a3fa2a292c6fe9c6735177 (diff) | |
Fixed #20453 -- inspectdb test failure on Oracle
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/oracle/introspection.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
