Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Simplified max_name_length() call in oracle database backend

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e267bec83af02d0e871b82719f17afe867c52dda 1 parent b105a52
@adrianholovaty adrianholovaty authored
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.