Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #11033 -- handle cx_Oracle.UNICODE when driver was comp…

…iled without Unicode support. Thanks, JirkaV.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5e20f14c8bab69c92c4f442889ff76128c5105a8 1 parent a1d6fda
@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.