mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #30307 -- Fixed incorrect quoting of database user password when using dbshell on Oracle.
Regression in acfc650f2a
.
This commit is contained in:
parent
1ffddfc233
commit
755673e1bc
3 changed files with 5 additions and 3 deletions
|
@ -87,7 +87,7 @@ class TransactionalTests(TransactionTestCase):
|
|||
old_password = connection.settings_dict['PASSWORD']
|
||||
connection.settings_dict['PASSWORD'] = 'p@ssword'
|
||||
try:
|
||||
self.assertIn('/\\"p@ssword\\"@', connection._connect_string())
|
||||
self.assertIn('/"p@ssword"@', connection._connect_string())
|
||||
with self.assertRaises(DatabaseError) as context:
|
||||
connection.cursor()
|
||||
# Database exception: "ORA-01017: invalid username/password" is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue