diff options
| author | Matt Boersma <matt@sprout.org> | 2009-05-12 20:32:03 +0000 |
|---|---|---|
| committer | Matt Boersma <matt@sprout.org> | 2009-05-12 20:32:03 +0000 |
| commit | 5e20f14c8bab69c92c4f442889ff76128c5105a8 (patch) | |
| tree | 1345d1547fdd80fb431a5e845c5887cb214ca602 | |
| parent | a1d6fdafce04dd08783e4fa6938d45d31c69ee8f (diff) | |
[1.0.X] Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled 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
| -rw-r--r-- | django/db/backends/oracle/introspection.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 7bc385600c..543e84a8f3 100644 --- a/django/db/backends/oracle/introspection.py +++ b/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") |
