summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/features.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #470 -- Added support for database defaults on fields.Ian Foote2023-05-121-0/+7
| | | | | | | | Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews.
* Fixed #34523 -- Fixed TransactionManagementError in ↵Mariusz Felisiak2023-05-031-3/+0
| | | | | | | | | | | | | | QuerySet.update_or_create() with MyISAM storage engine. QuerySet.update_or_create() uses nested atomic to handle possible integrity errors taking savepoints as way to mark back the connection as usable. Savepoints are not returned when uses_savepoints/can_release_savepoints feature flags are set to False. As a consequence, QuerySet.update_or_create() assumed the outer atomic block is tainted and raised TransactionManagementError. This commit partly reverts 331a460f8f2e4f447b68fba491464b68c9b21fd1. Thanks gatello-s for the report.
* Fixed #33759 -- Avoided unnecessary subquery in QuerySet.delete() with ↵4the4ryushin2023-05-011-0/+1
| | | | self-referential subqueries if supported.
* Fixed #34421 -- Fixed QuerySet.update() on querysets in descending order by ↵hb6h0572023-03-181-0/+1
| | | | annotations.
* Refs #31445 -- Added test for nesting QuerySet.union().Mariusz Felisiak2023-02-211-0/+10
| | | This was fixed in MySQL 8.0.31.
* Fixed #34255 -- Made PostgreSQL backend use client-side parameters binding ↵Mariusz Felisiak2023-01-171-0/+10
| | | | | | | | with psycopg version 3. Thanks Guillaume Andreu Sabater for the report. Co-authored-by: Florian Apolloner <apollo13@users.noreply.github.com>
* Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul2022-12-281-0/+2
| | | | | | | | Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Removed redundant definition of DatabaseFeatures.can_release_savepoints on ↵Mariusz Felisiak2022-12-051-1/+0
| | | | MySQL.
* Fixed #31331 -- Switched MySQL to group by selected primary keys.Simon Charette2022-11-071-13/+1
| | | | | | MySQL 5.7.15 supports group by functional dependences so there is no need to special case group by main table primary key anymore and special case the ONLY_FULL_GROUP_BY sql mode.
* Fixed DatabaseFeatures.supports_select_(intersection/difference) on MariaDB ↵Mariusz Felisiak2022-10-251-2/+9
| | | | and MySQL 8.0.31+.
* Fixed #34070 -- Added subsecond support to Now() on SQLite and MySQL.Lily Foote2022-10-031-1/+1
|
* Fixed collation tests on MySQL 8.0.30+.Mariusz Felisiak2022-07-271-4/+7
| | | The utf8_ collations are renamed to utf8mb3_* on MySQL 8.0.30+.
* Fixed #33718 -- Dropped support for MySQL 5.7.Mariusz Felisiak2022-07-081-53/+3
|
* Refs #33713 -- Removed unnecessary skip for MariaDB 10.3.Mariusz Felisiak2022-06-271-7/+3
|
* Fixed #33796 -- Fixed ordered combined queryset crash when used in subquery ↵Mariusz Felisiak2022-06-271-0/+19
| | | | | | | | on PostgreSQL and MySQL. Thanks Shai Berger for the report. Regression in 30a01441347d5a2146af2944b29778fa0834d4be.
* Fixed #28897 -- Fixed QuerySet.update() on querysets ordered by annotations.David Wobrock2022-06-171-0/+1
|
* Refs #28897 -- Added test for QuerySet.update() on querysets ordered by ↵David Wobrock2022-06-171-0/+5
| | | | inline m2m annotation.
* Fixed #32234 -- Made inspectdb inform about composite primary keys.Anv3sh2022-06-011-0/+7
|
* Fixed #33713 -- Dropped support for MariaDB 10.3.Mariusz Felisiak2022-05-181-8/+4
|
* Refs #33379 -- Fixed minimum supported version of MariaDB.Mariusz Felisiak2022-05-171-1/+1
|
* Refs #27064 -- Added RenameIndex migration operation.David Wobrock2022-05-121-0/+6
|
* Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related ↵Mariusz Felisiak2022-04-181-0/+3
| | | | tests with MyISAM storage engine.
* Fixed DatabaseFeatures.supports_index_column_ordering and related tests with ↵Mariusz Felisiak2022-04-131-0/+2
| | | | MyISAM storage engine.
* Fixed DatabaseFeatures.supports_expression_indexes on MySQL with MyISAM.Mariusz Felisiak2022-04-121-0/+1
|
* Refs #30581 -- Fixed DatabaseFeatures.bare_select_suffix on MySQL < 8 and ↵Gagaro2022-03-221-0/+11
| | | | MariaDB < 10.4.
* Fixed #29865 -- Added logical XOR support for Q() and querysets.Ryan Heard2022-03-041-0/+1
|
* Fixed #33508 -- Fixed DatabaseFeatures.supports_index_column_ordering on ↵Alokik Vijay2022-02-261-4/+3
| | | | MariaDB 10.8+.
* Fixed #33379 -- Added minimum database version checks.Hasan Ramezani2022-02-181-0/+7
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-12/+24
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-80/+122
|
* Fixed #31685 -- Added support for updating conflicts to QuerySet.bulk_create().sean_c_hsu2022-01-191-0/+1
| | | | | Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope, and Mariusz Felisiak for reviews.
* Fixed #33228 -- Changed value of ↵Chinmoy2021-10-281-1/+0
| | | | BaseDatabaseFeatures.has_case_insensitive_like to False.
* Fixed #33129 -- Dropped support for MariaDB 10.2.Mariusz Felisiak2021-09-221-4/+4
|
* Refs #10929 -- Allowed NowUTC SQL customization for third-party backends.Tim Graham2021-08-241-0/+2
|
* Fixed #10929 -- Added default argument to aggregates.Nick Pope2021-07-191-0/+11
| | | | Thanks to Simon Charette and Adam Johnson for the reviews.
* Fixed #32908 -- Allowed select_for_update(skip_locked) on MariaDB 10.6+.Mariusz Felisiak2021-07-081-1/+3
|
* Fixed inspectdb and schema tests on MariaDB 10.6+.Mariusz Felisiak2021-07-071-5/+12
| | | | The utf8 character set (and related collations) is by default an alias for utf8mb3 on MariaDB 10.6+.
* Refs #25287 -- Added support for multiplying and dividing DurationField by ↵Tobias Bengfort2021-04-201-0/+4
| | | | scalar values on SQLite.
* Fixed #26167 -- Added support for functional indexes.Hannes Ljungberg2021-01-131-0/+15
| | | | | | Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews. Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
* Fixed #32342 -- Added index order introspection on MySQL 8.0.1+.Mariusz Felisiak2021-01-111-1/+7
|
* Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani2020-12-101-0/+46
| | | | | failures. Co-authored-by: Tim Graham <timograham@gmail.com>
* Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick2020-09-211-0/+1
| | | | Thanks Simon Charette and Mariusz Felisiak for reviews.
* Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation.Tom Carrick2020-09-181-1/+1
| | | | Previously, backends used different keys "swedish-ci" or "swedish_ci".
* Fixed #21181 -- Added Collate database function.Tom Carrick2020-08-111-0/+4
| | | | Thanks Simon Charette for reviews.
* Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if ↵Mariusz Felisiak2020-07-201-1/+8
| | | | NO_AUTO_VALUE_ON_ZERO SQL mode is enabled.
* Fixed #31770 -- Allowed select_for_update(of) on MySQL 8.0.1+.Simon Charette2020-07-131-0/+4
|
* Fixed #31758 -- Removed unneeded BytesToCharFieldConversionMixin.Sergey Fedoseev2020-07-021-1/+0
| | | Bug was fixed in mysqlclient 1.3.13.
* Combined MySQL backend server info queries.Adam Johnson2020-06-221-17/+4
|
* Refs #31630 -- Removed DatabaseFeatures.can_introspect_autofield.Tim Graham2020-06-041-1/+0
|
* Fixed #31630 -- Replaced introspection features with ↵Hasan Ramezani2020-06-041-5/+10
| | | | DatabaseFeatures.introspected_field_types.