Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Duplicate percent signs in names in quote_name() so the names can be …

…used in statements
  • Loading branch information...
commit e696437445f699ab32135f1c2e946320d04dba5f 1 parent f51eab7
Shai Berger authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/db/backends/oracle/
4 django/db/backends/oracle/
@@ -256,6 +256,10 @@ def quote_name(self, name):
if not name.startswith('"') and not name.endswith('"'):
name = '"%s"' % util.truncate_name(name.upper(),
+ # This backend puts the query text into a (query % args) construct,
+ # so % signs in names need to be protected.
+ # Because of this, we are also not really making the name longer here.
+ name = name.replace('%','%%')
return name.upper()
def random_function_sql(self):
Please sign in to comment.
Something went wrong with that request. Please try again.