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:
Adrian Holovaty 2007-08-20 03:10:20 +00:00
parent b105a52882
commit e267bec83a
1 changed files with 1 additions and 1 deletions

View File

@ -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):