| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-02-01 | [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| 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 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main | |||
| 2022-12-08 | Made inspectdb used Cursor.description.display_size for CharFields' max_length. | Mariusz Felisiak | |
| internal_size is size for fixed-size types not for char types. | |||
| 2022-12-08 | Fixed #34201 -- Bumped minimum supported SQLite to 3.21.0. | Mariusz Felisiak | |
| 2022-11-28 | Refs #31169 -- Skipped test_get_test_db_clone_settings_not_supported on not ↵ | Mariusz Felisiak | |
| in-memory SQLite database. multiprocessing's start method is checked only for in-memory SQLite databases. | |||
| 2022-11-24 | Used DatabaseFeatures.django_test_skips to skip ↵ | Christophe Baldy | |
| AssertNumQueriesUponConnectionTests tests. | |||
| 2022-11-24 | Fixed #29062 -- Prevented possibility of database lock when using ↵ | baldychristophe | |
| LiveServerTestCase with in-memory SQLite database. Thanks Chris Jerdonek for the implementation idea. | |||
| 2022-11-17 | Fixed #28987 -- Fixed altering ManyToManyField when changing to ↵ | DevilsAutumn | |
| self-referential. | |||
| 2022-11-08 | Used super().execute/executemany() in SQLiteCursorWrapper. | Nick Pope | |
| 2022-11-08 | Fixed #10070 -- Added support for pyformat style parameters on SQLite. | Ryan Cheley | |
| Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-11-04 | Fixed #34138 -- Avoided table rebuild when adding inline m2m fields on SQLite. | Mariusz Felisiak | |
| Regression in 2f73e5406d54cb8945e187eff302a3a3373350be. Thanks David Wobrock for the report. | |||
| 2022-11-04 | Removed obsolete references to pysqlite. | Nick Pope | |
| Obsolete since 1b06d5e6f6be8e567ce78c892c485af039830d7d. | |||
| 2022-11-01 | Refs #33768 -- Fixed ordering compound queries by NULLs on SQLite < 3.30. | Simon Charette | |
| The lack of support for native nulls last/first on SQLite 3.28 and 3.29 requires the compound query to be wrapped for emulation layer to work properly. | |||
| 2022-10-31 | Used more augmented assignment statements. | Nick Pope | |
| Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]' | |||
| 2022-10-26 | Refs #33173 -- Fixed destroying test databases when running tests in ↵ | Mariusz Felisiak | |
| parallel using spawn on Windows. Thanks Simon Willison for inspiration. | |||
| 2022-08-29 | Fixed #33960 -- Fixed migrations crash on SQLite < 3.26. | Mariusz Felisiak | |
| Regression in 0b95a96ee10d3e12aef01d449467bcf4641286b4. Thanks Aristotelis Mikropoulos for the report. | |||
| 2022-08-08 | Fixed #33899 -- Fixed migration crash when removing indexed field on SQLite ↵ | Fiza Ashraf | |
| 3.35.5+. Regression in 702819227fd0cdd9b581cd99e11d1561d51cbeb. Thanks cessor for the report. | |||
| 2022-07-21 | Stopped using default adapters/converters on SQLite backend. | Mariusz Felisiak | |
| Default adapters/converters were deprecated in Python 3.12, see https://github.com/python/cpython/issues/90016. | |||
| 2022-07-06 | Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters. | Simon Charette | |
| Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-06-01 | Fixed #32234 -- Made inspectdb inform about composite primary keys. | Anv3sh | |
| 2022-05-02 | Fixed #33413 -- Made migrations propage collations to related fields. | David Wobrock | |
| 2022-04-29 | Fixed #33670 -- Fixed altering primary key on SQLite. | Mariusz Felisiak | |
| 2022-03-15 | Fixed #31169 -- Adapted the parallel test runner to use spawn. | David Smith | |
| Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-03-02 | Fixed #33553 -- Used built-in math functions in SQLite 3.35+. | Nick Pope | |
| In SQLite 3.35+ some math functions are available built-in as long as they are not disabled at compile time. We can introspect this and use these built-in functions in preference to our slower implementations. | |||
| 2022-02-18 | Fixed #33379 -- Added minimum database version checks. | Hasan Ramezani | |
| Thanks Tim Graham for the review. | |||
| 2022-02-11 | Refs #32502 -- Avoided table rebuild when removing fields on SQLite 3.35.5+. | Mariusz Felisiak | |
| ALTER TABLE ... DROP COLUMN was introduced in SQLite 3.35+ however a data corruption issue was fixed in SQLite 3.35.5. | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-01-24 | Fixed #33460 -- Used VALUES clause for insert in bulk on SQLite. | Keryn Knight | |
| SQLite 3.7.11 introduced the ability to use multiple values directly. SQLite 3.8.8 made multiple values not subject to the SQLITE_LIMIT_COMPOUND_SELECT (500). | |||
| 2022-01-19 | Fixed #31685 -- Added support for updating conflicts to QuerySet.bulk_create(). | sean_c_hsu | |
| Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope, and Mariusz Felisiak for reviews. | |||
| 2022-01-04 | Fixed #33408 -- Fixed adding nullable unique fields on SQLite. | Mariusz Felisiak | |
| Regression in 2f73e5406d54cb8945e187eff302a3a3373350be. Thanks Alan Crosswell for the report. | |||
| 2021-12-27 | Refs #29517 -- Removed obsolete PositiveIntegerField test skip. | Tim Graham | |
| 2021-12-23 | Refs #33355 -- Constructed SQLite list aggregate types once. | Adam Johnson | |
| 2021-12-23 | Refs #33355 -- Removed @none_guard from SQLite functions. | Adam Johnson | |
| Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-23 | Refs #33355 -- Made trunc functions raise ValueError on invalid lookups on ↵ | Adam Johnson | |
| SQLite. Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-23 | Refs #33355 -- Moved SQLite functions to separate module. | Adam Johnson | |
| Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-23 | Refs #33355 -- Optimized LPad() database function on SQLite. | Adam Johnson | |
| Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-22 | Refs #33355 -- Optimized Trunc() on SQLite by using f-strings. | Adam Johnson | |
| Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-13 | Refs #33355 -- Fixed Trunc() with years < 1000 on SQLite. | Adam Johnson | |
| Thanks to Nick Pope for spotting the bug in Code Review. Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-10 | Refs #32502 -- Avoided table rebuild when adding fields with no default on ↵ | Mariusz Felisiak | |
| SQLite. | |||
| 2021-12-10 | Fixed DatabaseFeatures.requires_literal_defaults on SQLite. | Mariusz Felisiak | |
| This flag is currently unused on SQLite because it doesn't support dropping a DEFAULT clause, however it requires literal defaults, rather than parameterized ones, so we can set it for clarity. | |||
| 2021-12-10 | Refs #32502 -- Added SchemaEditor.prepare_default() on SQLite. | Mariusz Felisiak | |
| 2021-12-07 | Fixed #31765 -- Enforced enhanced ALTER TABLE behavior for SQLite connections. | Adam Johnson | |
| 2021-11-25 | Removed unneeded can_use_chunked_reads feature flag on SQLite. | Mariusz Felisiak | |
| Unneeded since c0e3c65b9d1b26cfc38137b7666ef0e108aab77f. | |||
| 2021-11-15 | Refs #33288 -- Removed SQLite's ↵ | Simon Charette | |
| DatabaseIntrospection._get_foreign_key_constraints(). The get_relations() method returns the exact same data in a more generic format. | |||
| 2021-11-15 | Fixed #33288 -- Made SQLite introspection use information schema for relations. | Simon Charette | |
| Previous solution was using brittle and complex parsing rules to extract them from the SQL used to define the tables. Removed a now unnecessary unit test that ensured the removed parsing logic accounted for optional spacing. | |||
| 2021-11-15 | Refs #33288 -- Made SQLite introspection raise DatabaseError on nonexistent ↵ | Simon Charette | |
| tables. All the other backends behave this way and we had to make adjustments to our test suite to account for this discrepancy. This also allows SQLite's get_relations() not to raise on a nonexistent table while making sure the InspectDBTestCase.test_introspection_errors test which ensures an error during introspection is surfaced in generated models files still passes. | |||
| 2021-11-12 | Fixed #33279 -- Fixed handling time zones with "-" sign in names. | Can Sarigol | |
| Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1. | |||
| 2021-11-10 | Removed DatabaseIntrospection.get_key_columns(). | Mariusz Felisiak | |
| Thanks Simon Charette for the report. | |||
| 2021-11-10 | Fixed DatabaseIntrospection.get_relations() docstring. | Tim Graham | |
| The foreign keys are "in" the given table, not "to" it. | |||
| 2021-11-02 | Fixed #33224 -- Removed ↵ | Hasan Ramezani | |
| DatabaseFeatures.supports_mixed_date_datetime_comparisons. | |||
