mirror of https://github.com/django/django.git
Simplified max_name_length() call in oracle database backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5979 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b105a52882
commit
e267bec83a
|
@ -331,7 +331,7 @@ class DatabaseOperations(BaseDatabaseOperations):
|
||||||
# always defaults to uppercase.
|
# always defaults to uppercase.
|
||||||
# We simplify things by making Oracle identifiers always uppercase.
|
# We simplify things by making Oracle identifiers always uppercase.
|
||||||
if not name.startswith('"') and not name.endswith('"'):
|
if not name.startswith('"') and not name.endswith('"'):
|
||||||
name = '"%s"' % util.truncate_name(name.upper(), DatabaseOperations().max_name_length())
|
name = '"%s"' % util.truncate_name(name.upper(), self.max_name_length())
|
||||||
return name.upper()
|
return name.upper()
|
||||||
|
|
||||||
def random_function_sql(self):
|
def random_function_sql(self):
|
||||||
|
|
Loading…
Reference in New Issue