summaryrefslogtreecommitdiff
path: root/tests/dbshell
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34535 -- Fixed SQLite dbshell crash on pathlib.Path when handling ↵Jan Pieter Waagmeester2023-05-041-0/+19
| | | | | | CommandError. Regression in 5b884d45ac5b76234eca614d90c83b347294c332.
* Fixed #33854 -- Corrected the order of parameters in dbshell on PostgreSQL.Jarrett Keifer2022-07-181-1/+1
|
* Fixed #33715 -- Allowed keyboard interrupt to abort queries in MySQL dbshell.Hasan Ramezani2022-05-201-0/+19
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-075-224/+259
|
* Fixed #32732 -- Removed usage of deprecated 'db' and 'passwd' connection ↵Nick Pope2021-05-121-21/+29
| | | | | | | | | options in MySQL backend. The 'db' and 'passwd' connection options have been deprecated, use 'database' and 'password' instead (available since mysqlclient >= 1.3.8). This also allows the 'database' option in DATABASES['OPTIONS'] on MySQL.
* Fixed #32687 -- Restored passing process’ environment to underlying tool ↵Konstantin Alekseev2021-04-271-2/+2
| | | | | | in dbshell on PostgreSQL. Regression in bbe6fbb8768e8fb1aecb96d51c049d7ceaf802d3.
* Fixed #32456 -- Added dbshell support for specifying a password file on ↵Hasan Ramezani2021-03-011-0/+28
| | | | PostgreSQL.
* Refs #32292 -- Made dbshell do not use 'postgres' database when service name ↵Mariusz Felisiak2021-02-261-1/+1
| | | | | is set. Regression in dcb3ad3319cad5c270a1856fd5f355e37cf9d474.
* Fixed #32355 -- Dropped support for Python 3.6 and 3.7Mariusz Felisiak2021-02-101-1/+1
|
* Fixed #32292 -- Added support for connection by service name to PostgreSQL.Hasan Ramezani2021-01-201-0/+6
|
* Refs #32061 -- Fixed test_crash_password_does_not_leak() crash on Windows.Mariusz Felisiak2020-11-032-0/+6
| | | | | | | | | | When env is passed to subprocess.run() we should pass all existing environment variables. This fixes crash on Windows: Fatal Python error: failed to get random numbers to initialize Python Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python Python runtime state: preinitialized
* Refs #32061 -- Prevented password leak on MySQL dbshell crash.Simon Charette2020-10-301-12/+30
| | | | | | | | | | | | | | | | | | The usage of the --password flag when invoking the mysql CLI has the potential of exposing the password in plain text if the command happens to crash due to the inclusion of args provided to subprocess.run(check=True) in the string representation of the subprocess.CalledProcessError exception raised on non-zero return code. Since this has the potential of leaking the password to logging facilities configured to capture crashes (e.g. sys.excepthook, Sentry) it's safer to rely on the MYSQL_PWD environment variable instead even if its usage is discouraged due to potential leak through the ps command on old flavors of Unix. Thanks Charlie Denton for reporting the issue to the security team. Refs #24999.
* Refs #32061 -- Added test for dbshell password leak on PostgreSQL.Simon Charette2020-10-302-0/+16
|
* Refs #32061 -- Unified DatabaseClient.runshell() in db backends.Simon Charette2020-10-294-140/+165
|
* Fixed #6517 -- Made dbshell use charset option on MySQL.manav0142020-10-171-0/+17
| | | | Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #31491 -- Allowed 'password' option in DATABASES['OPTIONS'] on MySQL.Hasan Ramezani2020-06-121-0/+16
|
* Fixed #29501 -- Allowed dbshell to pass options to underlying tool.Adam Johnson2020-04-144-9/+56
|
* Refs #29501 -- Added test for missing dbshell executable.Mariusz Felisiak2020-04-141-0/+17
|
* Fixed #31076 -- Fixed dbshell crash on Windows with Python < 3.8.Zeynel Özdemir2019-12-161-0/+31
| | | | | subprocess.run()'s args parameter accepts path-like objects on Windows since Python 3.8.
* Fixed broken OracleDbshellTests tests after ↵Mariusz Felisiak2019-08-231-3/+3
| | | | 9386586f31b8a0bccf59a1bff647cd829d4e79aa.
* Replaced subprocess commands by run() wherever possible.Claude Paroz2019-08-231-4/+5
|
* Fixed typos in comments and a test name.Min ho Kim2019-07-191-1/+1
|
* Fixed #30370 -- Added dbshell support for client TLS certificates on PostgreSQL.Oleh Mykytiuk2019-04-181-7/+30
|
* Fixed #30173 -- Simplified db.backends.postgresql.client.Daniel Bowring2019-02-131-33/+13
|
* Refs #25175 -- Renamed test file referencing the old postgresql_psycopg2 engine.Tim Graham2019-02-131-0/+0
|
* Removed default mode='r' argument from calls to open().Jon Dufresne2019-01-271-1/+1
|
* Fixed #29534 -- Made dbshell use rlwrap on Oracle if available.Mariusz Felisiak2018-10-251-0/+33
|
* Fixed typos in comments and docs.luz.paz2018-08-011-1/+1
|
* Fixed #28322 -- Added dbshell support for MySQL client TLS certs.Paul Tiplady2017-06-191-2/+9
|
* Fixed #27954 -- Allowed keyboard interrupt to abort queries in PostgreSQL ↵Chris Sinchok2017-04-011-0/+15
| | | | | dbshell. Thanks Tim Martin for review.
* Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham2017-01-201-1/+2
|
* Refs #23919 -- Removed unneeded force_str callsClaude Paroz2017-01-201-20/+10
|
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-11/+6
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-3/+0
|
* Fixed #26698 -- Fixed PostgreSQL dbshell crash on an empty database name.mieciu2016-06-031-24/+24
|
* Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede2015-08-071-1/+1
|
* Refs #23658 -- Fixed dbshell tests on Windows.Tim Graham2015-07-061-5/+5
|
* Refs #23658 -- Fixed unclosed file in dbshell tests.Tim Graham2015-07-011-1/+2
|
* Fixed #23658 -- Provided the password to PostgreSQL dbshell commandJean-Michel Vourgère2015-06-301-0/+117
| | | | | | The password from settings.py is written in a temporary .pgpass file file whose name is given to psql using the PGPASSFILE environment variable.
* Renamed MySQL-specific dbshell test file.Tim Graham2015-06-271-0/+0
|
* Fixed #22646: Added support for the MySQL ssl-ca option to dbshell.zsoldosp2014-08-132-0/+73