diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-30 12:59:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 12:59:07 +0200 |
| commit | 1f643c28b5f2b039c47155692844dbae1cb091cd (patch) | |
| tree | 0bcdecef1a03a7e8fcf42148d2759c729d763344 /django | |
| parent | 54da6e2ac20bde80e0de9e35aa0c40ae1dd13943 (diff) | |
Fixed #32653 -- Made quoting names in the Oracle backend consistent with db_table.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/oracle/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/operations.py b/django/db/backends/oracle/operations.py index ae6bd432fb..d48c8dd868 100644 --- a/django/db/backends/oracle/operations.py +++ b/django/db/backends/oracle/operations.py @@ -334,7 +334,7 @@ END; # always defaults to uppercase. # We simplify things by making Oracle identifiers always uppercase. if not name.startswith('"') and not name.endswith('"'): - name = '"%s"' % truncate_name(name.upper(), self.max_name_length()) + name = '"%s"' % truncate_name(name, self.max_name_length()) # Oracle puts the query text into a (query % args) construct, so % signs # in names need to be escaped. The '%%' will be collapsed back to '%' at # that stage so we aren't really making the name longer here. |
