Author: mboersma
Date: 2009-05-12 15:30:28 -0500 (Tue, 12 May 2009)
New Revision: 10749

Modified:
   django/trunk/django/db/backends/oracle/introspection.py
Log:
Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled without 
Unicode support.  Thanks, JirkaV.


Modified: django/trunk/django/db/backends/oracle/introspection.py
===================================================================
--- django/trunk/django/db/backends/oracle/introspection.py     2009-05-12 
17:25:29 UTC (rev 10748)
+++ django/trunk/django/db/backends/oracle/introspection.py     2009-05-12 
20:30:28 UTC (rev 10749)
@@ -21,6 +21,11 @@
     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")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to