Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled wit…

…hout Unicode support. Thanks, JirkaV.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9140f97f9db83db37e0d7e6a97f45aa27ac1bd8f 1 parent d083396
@mboersma mboersma authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/db/backends/oracle/introspection.py
View
5 django/db/backends/oracle/introspection.py
@@ -21,6 +21,11 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
except AttributeError:
pass
+ try:
+ data_types_reverse[cx_Oracle.UNICODE] = 'CharField'
+ except AttributeError:
+ pass
+
def get_table_list(self, cursor):
"Returns a list of table names in the current database."
cursor.execute("SELECT TABLE_NAME FROM USER_TABLES")
Please sign in to comment.
Something went wrong with that request. Please try again.