mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #20453 -- inspectdb test failure on Oracle
This commit is contained in:
@@ -50,6 +50,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||||||
description = []
|
description = []
|
||||||
for desc in cursor.description:
|
for desc in cursor.description:
|
||||||
name = force_text(desc[0]) # cx_Oracle always returns a 'str' on both Python 2 and 3
|
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:]))
|
description.append(FieldInfo(*(name.lower(),) + desc[1:]))
|
||||||
return description
|
return description
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user