summaryrefslogtreecommitdiff
path: root/tests/backends/postgresql
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵David Wobrock2023-04-181-1/+31
| | | | relation on PostgreSQL.
* 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
|
* Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.Florian Apolloner2022-12-121-3/+1
|
* 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.
* Refs #33308 -- Used psycopg's errors instead of errorcodes.Florian Apolloner2022-12-011-5/+5
|
* 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 #30511 -- Used identity columns instead of serials on PostgreSQL.Florian Apolloner2022-04-131-0/+15
|
* 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-075-88/+138
|
* 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.
* Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert".Mateo Radman2021-07-051-0/+10
|
* 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-302-1/+2
| | | | | Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
* Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on ↵Jon Dufresne2020-04-171-38/+4
| | | | | | | | | | | | PostgreSQL. The sql_flush() positional argument sequences is replaced by the boolean keyword-only argument reset_sequences. This ensures that the old function signature can't be used by mistake when upgrading Django. When the new argument is True, the sequences of the truncated tables will reset. Using a single boolean value, rather than a list, allows making a binary yes/no choice as to whether to reset all sequences rather than a working on a completely different set.
* Added test coverage for DatabaseOperations.sql_flush().Jon Dufresne2020-04-171-0/+84
|
* 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.
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-2/+1
|
* 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 #29613 -- Fixed --keepdb on PostgreSQL if the database exists and the ↵Mariusz Felisiak2018-08-031-3/+10
| | | | | | | user can't create databases. Regression in e776dd2db677d58dcb50aea20d3bb191537df25b. Thanks Tim Graham for the review.
* 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 #28893 -- Removed unnecessary dict.items() calls.Tim Graham2017-12-062-2/+2
|
* 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-282-19/+19
|
* Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after ↵Dražen Odobašić2017-11-211-1/+14
| | | | values() and values_list().
* Added assertion helpers for PostgreSQL's server-side cursor tests.Tim Graham2017-11-211-23/+17
|
* Refs #27090 -- Added real database sequence introspection.Mariusz Felisiak2017-09-131-0/+23
| | | | Thanks Mariusz Felisiak for the Oracle part and Tim Graham for the review.
* Reorganized backends tests.Mariusz Felisiak2017-06-214-0/+324