mirror of
https://github.com/django/django.git
synced 2025-03-09 17:02:43 +00:00
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.
|
||||
# We simplify things by making Oracle identifiers always uppercase.
|
||||
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()
|
||||
|
||||
def random_function_sql(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user