Skip to content

Commit

Permalink
Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled wit…
Browse files Browse the repository at this point in the history
…hout Unicode support. Thanks, JirkaV.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
mboersma committed May 12, 2009
1 parent d083396 commit 9140f97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django/db/backends/oracle/introspection.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
except AttributeError: except AttributeError:
pass pass


try:
data_types_reverse[cx_Oracle.UNICODE] = 'CharField'
except AttributeError:
pass

def get_table_list(self, cursor): def get_table_list(self, cursor):
"Returns a list of table names in the current database." "Returns a list of table names in the current database."
cursor.execute("SELECT TABLE_NAME FROM USER_TABLES") cursor.execute("SELECT TABLE_NAME FROM USER_TABLES")
Expand Down

0 comments on commit 9140f97

Please sign in to comment.