diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2016-11-02 14:44:15 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-08 16:30:22 -0500 |
commit | c4b04e1598c4325454c808183dce17b284ed9e28 (patch) | |
tree | 4bed65e3fab1e02d6dc833240cd903034cb108d8 /django | |
parent | fd78fb82d633a23e04eac72c7e1f41cac75e4c5b (diff) | |
download | django-c4b04e1598c4325454c808183dce17b284ed9e28.tar.gz |
Fixed #27420 -- Quoted the Oracle test user password in queries.
Diffstat (limited to 'django')
-rw-r--r-- | django/db/backends/oracle/creation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/oracle/creation.py b/django/db/backends/oracle/creation.py index 18653c39aa..aa5279fdce 100644 --- a/django/db/backends/oracle/creation.py +++ b/django/db/backends/oracle/creation.py @@ -209,7 +209,7 @@ class DatabaseCreation(BaseDatabaseCreation): print("_create_test_user(): username = %s" % parameters['user']) statements = [ """CREATE USER %(user)s - IDENTIFIED BY %(password)s + IDENTIFIED BY "%(password)s" DEFAULT TABLESPACE %(tblspace)s TEMPORARY TABLESPACE %(tblspace_temp)s QUOTA UNLIMITED ON %(tblspace)s @@ -226,7 +226,7 @@ class DatabaseCreation(BaseDatabaseCreation): success = self._execute_allow_fail_statements(cursor, statements, parameters, verbosity, acceptable_ora_err) # If the password was randomly generated, change the user accordingly. if not success and self._test_settings_get('PASSWORD') is None: - set_password = "ALTER USER %(user)s IDENTIFIED BY %(password)s" + set_password = 'ALTER USER %(user)s IDENTIFIED BY "%(password)s"' self._execute_statements(cursor, [set_password], parameters, verbosity) # Most test-suites can be run without the create-view privilege. But some need it. extra = "GRANT CREATE VIEW TO %(user)s" |