summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/introspection.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-04-17 14:22:00 +0200
committerGitHub <noreply@github.com>2017-04-17 14:22:00 +0200
commite5dce7b0fbd2965e524ce97114f501319ec2bb6f (patch)
treefd1077e0fbf2f1a5a2a1472b64bff086641c6906 /django/db/backends/oracle/introspection.py
parent8c6a3062dda7b51c3f545e625f529ce5c183040d (diff)
downloaddjango-e5dce7b0fbd2965e524ce97114f501319ec2bb6f.tar.gz
Refs #27795 -- Removed unneeded force_text calls from the Oracle backend.
Diffstat (limited to 'django/db/backends/oracle/introspection.py')
-rw-r--r--django/db/backends/oracle/introspection.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py
index 16dfc46d2c..03f5cd64a0 100644
--- a/django/db/backends/oracle/introspection.py
+++ b/django/db/backends/oracle/introspection.py
@@ -6,7 +6,6 @@ from django.db.backends.base.introspection import (
BaseDatabaseIntrospection, FieldInfo, TableInfo,
)
from django.utils.deprecation import RemovedInDjango21Warning
-from django.utils.encoding import force_text
class DatabaseIntrospection(BaseDatabaseIntrospection):
@@ -75,7 +74,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
self.cache_bust_counter))
description = []
for desc in cursor.description:
- name = force_text(desc[0]) # cx_Oracle always returns a 'str'
+ name = desc[0]
internal_size, default = field_map[name]
name = name % {} # cx_Oracle, for some reason, doubles percent signs.
description.append(FieldInfo(*(