Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • 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/base.py
View
2  django/db/backends/oracle/base.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.