summaryrefslogtreecommitdiff
path: root/tests/backends
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵David Wobrock2023-04-182-1/+46
| | | | 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.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-013-6/+0
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* 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-152-12/+28
| | | | | | | 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().
* Fixed #34201 -- Bumped minimum supported SQLite to 3.21.0.Mariusz Felisiak2022-12-081-2/+2
|
* 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 #34103 -- Fixed logging SQL queries with duplicate parameters on Oracle.David Sanders2022-11-251-0/+17
|
* Fixed #31090 -- Logged transaction management queries.Ilya Bass2022-11-211-3/+60
| | | | | Thanks to Petter Strandmark for the original idea and Mariusz Felisiak for advice during the DjangoConUS 2022 Sprint!
* Fixed #33872 -- Deprecated ↵Mariusz Felisiak2022-08-031-0/+1
| | | | django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
* Fixed #33718 -- Dropped support for MySQL 5.7.Mariusz Felisiak2022-07-081-2/+2
|
* Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters.Simon Charette2022-07-061-8/+8
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #33815 -- Fixed last_executed_query() on Oracle when parameter names ↵Mariusz Felisiak2022-07-051-0/+17
| | | | overlap.
* Fixed #33717 -- Dropped support for PostgreSQL 11.Mariusz Felisiak2022-05-191-2/+2
|
* Fixed #33713 -- Dropped support for MariaDB 10.3.Mariusz Felisiak2022-05-181-2/+2
|
* Refs #33379 -- Fixed minimum supported version of MariaDB.Mariusz Felisiak2022-05-171-2/+2
|
* Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.Mariusz Felisiak2022-05-041-2/+2
|
* Fixed various tests on MySQL with MyISAM storage engine.Mariusz Felisiak2022-04-181-2/+10
|
* Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related ↵Mariusz Felisiak2022-04-181-0/+1
| | | | tests with MyISAM storage engine.
* Fixed #30511 -- Used identity columns instead of serials on PostgreSQL.Florian Apolloner2022-04-131-0/+15
|
* Refs #30581 -- Fixed DatabaseFeatures.bare_select_suffix on MySQL < 8 and ↵Gagaro2022-03-221-0/+6
| | | | MariaDB < 10.4.
* Fixed isolation of FeaturesTests.test_supports_json_field_operational_error().Mariusz Felisiak2022-03-181-2/+3
|
* Fixed #31169 -- Adapted the parallel test runner to use spawn.David Smith2022-03-151-1/+9
| | | | | Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Removed redundant QuerySet.all() calls in docs and tests.Nick Pope2022-02-221-4/+4
| | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
* Fixed #33379 -- Added minimum database version checks.Hasan Ramezani2022-02-185-24/+94
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-074-8/+18
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0734-831/+1202
|
* Removed obsolete Oracle's test_client_encoding() test.Mariusz Felisiak2021-12-301-6/+0
| | | | | encoding and nencoding parameters were deprecated in cx_Oracle 8.2. Moreover, encoding is handled internally between cx_Oracle and Oracle Database and there is no need to test it.
* Fixed #23273 -- Avoided creation of django_migrations table when there are ↵Jacob Walls2021-12-301-3/+29
| | | | no migrations to apply.
* Refs #33355 -- Made trunc functions raise ValueError on invalid lookups on ↵Adam Johnson2021-12-231-0/+21
| | | | | | SQLite. Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
* 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 #30398 -- Added CONN_HEALTH_CHECKS database setting.Przemysław Suliga2021-12-011-2/+155
| | | | | | | The CONN_HEALTH_CHECKS setting can be used to enable database connection health checks for Django's persistent DB connections. Thanks Florian Apolloner for reviews.
* Fixed #33229 -- Fixed ↵SwastikTripathi2021-11-191-2/+10
| | | | BaseDatabaseOperations.adapt_datetimefield_value()/adapt_timefield_value() crash with expressions.
* Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and ↵Jonny Park2021-11-191-0/+7
| | | | SQLCompiler.
* Fixed #33279 -- Fixed handling time zones with "-" sign in names.Can Sarigol2021-11-121-1/+18
| | | | | | Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1.
* Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak2021-11-101-5/+0
| | | Thanks Simon Charette for the report.
* Fixed #32672 -- Fixed introspection of primary key constraints on SQLite.Anv3sh2021-10-261-0/+19
| | | | Thanks Simon Charette for the implementation idea.
* Fixed #33214 -- Added ↵Manaia Junior2021-10-221-0/+5
| | | | BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
* Fixed #33194 -- Fixed migrations when altering a field with functional ↵Hannes Ljungberg2021-10-181-0/+22
| | | | | | | | | | | indexes/unique constraints on SQLite. This adjusts Expressions.rename_table_references() to only update alias when needed. Regression in 83fcfc9ec8610540948815e127101f1206562ead. Co-authored-by: Simon Charette <charettes@users.noreply.github.com>
* Fixed #33160 -- Avoided suppressing query errors in _nodb_cursor() on ↵Daniel Hahler2021-10-011-0/+5
| | | | PostgreSQL.
* Fixed #33017 -- Fixed storage engine introspection on MySQL.Matjaz Gregoric2021-08-201-1/+31
| | | | | | This also improves performance on MySQL instances with a large number of databases, since querying the information_schema table can be very slow
* Used more specific unittest assertions in tests.Mads Jensen2021-07-071-1/+1
|
* Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert".Mateo Radman2021-07-051-0/+10
|