Author: mboersma Date: 2009-05-12 15:32:03 -0500 (Tue, 12 May 2009) New Revision: 10750
Modified: django/branches/releases/1.0.X/django/db/backends/oracle/introspection.py Log: [1.0.X] Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled without Unicode support. Thanks, JirkaV. Modified: django/branches/releases/1.0.X/django/db/backends/oracle/introspection.py =================================================================== --- django/branches/releases/1.0.X/django/db/backends/oracle/introspection.py 2009-05-12 20:30:28 UTC (rev 10749) +++ django/branches/releases/1.0.X/django/db/backends/oracle/introspection.py 2009-05-12 20:32:03 UTC (rev 10750) @@ -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 -~----------~----~----~----~------~----~------~--~---