Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Matt Boersma authored May 12, 2009
5  django/db/backends/oracle/introspection.py
@@ -21,6 +21,11 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
21 21
     except AttributeError:
22 22
         pass
23 23
 
  24
+    try:
  25
+        data_types_reverse[cx_Oracle.UNICODE] = 'CharField'
  26
+    except AttributeError:
  27
+        pass
  28
+
24 29
     def get_table_list(self, cursor):
25 30
         "Returns a list of table names in the current database."
26 31
         cursor.execute("SELECT TABLE_NAME FROM USER_TABLES")

0 notes on commit 9140f97

Please sign in to comment.
Something went wrong with that request. Please try again.