Skip to content
Browse files

Simplified max_name_length() call in oracle database backend

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b105a52 commit e267bec83af02d0e871b82719f17afe867c52dda @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/oracle/
2 django/db/backends/oracle/
@@ -331,7 +331,7 @@ def quote_name(self, name):
# 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):

0 comments on commit e267bec

Please sign in to comment.
Something went wrong with that request. Please try again.