mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled without Unicode support. Thanks, JirkaV.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d08339686b
commit
9140f97f9d
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue