summaryrefslogtreecommitdiff
path: root/tests/backends/postgresql/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34486 -- Fixed DatabaseOperations.compose_sql() crash with no ↵Scott Macpherson2023-04-141-0/+10
| | | | | | existing database connection on PostgreSQL. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
* Fixed #34470 -- Enforced UTF-8 encoding on PostgreSQL.Mariusz Felisiak2023-04-071-0/+12
| | | Regression in 6a2165816394ab4bb259f6171e82417e098e97a6.
* Fixed #34466 -- Reallowed setting cursor_factory in DATABASES["options"] on ↵Anders Kaseorg2023-04-071-0/+18
| | | | | | PostgreSQL. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
* Fixed #34255 -- Made PostgreSQL backend use client-side parameters binding ↵Mariusz Felisiak2023-01-171-0/+19
| | | | | | | | with psycopg version 3. Thanks Guillaume Andreu Sabater for the report. Co-authored-by: Florian Apolloner <apollo13@users.noreply.github.com>
* Fixed #34200 -- Made the session role configurable on PostgreSQL.Mike Crute2023-01-031-1/+16
|
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-151-8/+24
| | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Refs #33308 -- Added psycopg_any.IsolationLevel.Florian Apolloner2022-12-121-3/+19
|
* Avoided direct mocking of psycopg2.__version__ in ↵Mariusz Felisiak2022-12-081-4/+6
| | | | test_correct_extraction_psycopg2_version().
* Refs #33308 -- Modernized database wrapper in the PostgreSQL backend.Florian Apolloner2022-12-061-1/+1
| | | | | | | | | - Used connection.info instead of connection.get_parameter_status() and connection.server_info which don't exist in psycopg 3. - Set encoding using the client_encoding connection parameter instead of connection.set_client_encoding() that doesn't exist in psycopg 3. - Used the dbname connection parameter instead of deprecated alias - database.
* Fixed #33872 -- Deprecated ↵Mariusz Felisiak2022-08-031-0/+1
| | | | django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
* Fixed #33717 -- Dropped support for PostgreSQL 11.Mariusz Felisiak2022-05-191-2/+2
|
* Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.Mariusz Felisiak2022-05-041-2/+2
|
* Fixed #33379 -- Added minimum database version checks.Hasan Ramezani2022-02-181-1/+19
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-48/+67
|
* Refs #32355 -- Bumped required psycopg2 version to 2.8.4.Mariusz Felisiak2021-12-221-4/+1
| | | psycopg2 2.8.4 is the first release to support Python 3.8.
* Fixed #33160 -- Avoided suppressing query errors in _nodb_cursor() on ↵Daniel Hahler2021-10-011-0/+5
| | | | PostgreSQL.
* Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' ↵Mariusz Felisiak2021-02-021-1/+49
| | | | | | | database. Thanks Kazantcev Andrey for the report. Regression in f48f671223a20b161ca819cf7d6298e43b8ba5fe.
* Fixed #32292 -- Added support for connection by service name to PostgreSQL.Hasan Ramezani2021-01-201-0/+30
|
* Bumped minimum isort version to 5.1.0.David Smith2020-07-301-1/+1
| | | | | Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
* Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne2020-02-061-5/+8
|
* Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor().Jon Dufresne2020-02-061-9/+21
| | | | | | It is now a method instead of a property and returns a context manager that yields a cursor on entry and closes the cursor and connection upon exit.
* Fixed #30148 -- Logged COPY ... TO statements in connection.queries on ↵kingbuzzman2019-04-291-1/+14
| | | | PostgreSQL.
* Fixed #30193, Refs #28478 -- Avoided PostgreSQL connection health checks on ↵Simon Charette2019-02-201-0/+6
| | | | | initialization. This addressed a regression introduced by a96b9019320ed8236659ee520a7a017c1bafbc6f as identified by Ran Benita.
* Refs #29015 -- Added database name to PostgreSQL database name too long ↵Jon Dufresne2018-08-171-3/+4
| | | | exception.
* Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert2018-05-091-6/+8
|
* Fixed #29015 -- Added an exception if the PostgreSQL database name is too long.priyanshsaxena2018-04-271-0/+13
|
* Refs #24791 -- Made PostgreSQL's nodb connection use first PostgresSQL db ↵Mariusz Felisiak2018-04-031-4/+9
| | | | | when 'postgres' db isn't available. Thanks Tim Graham and Claude Paroz for reviews.
* Fixed #28702 -- Made query lookups for CIText fields use citext.Mads Jensen2017-11-291-0/+4
|
* Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne2017-11-281-7/+7
|
* Reorganized backends tests.Mariusz Felisiak2017-06-211-0/+147