summaryrefslogtreecommitdiff
path: root/tests/backends/sqlite
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-1/+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 #34201 -- Bumped minimum supported SQLite to 3.21.0.Mariusz Felisiak2022-12-081-2/+2
|
* 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-181-19/+7
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-076-117/+183
|
* 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>
* Fixed #32672 -- Fixed introspection of primary key constraints on SQLite.Anv3sh2021-10-261-0/+19
| | | | Thanks Simon Charette for the implementation idea.
* Fixed #32582 -- Removed unnecessary dot in names of cloned test databases on ↵Girish Sontakke2021-03-251-0/+17
| | | | SQLite.
* Fixed #32303 -- Bumped minimum supported SQLite to 3.9.0.Mariusz Felisiak2020-12-301-3/+3
|
* Fixed #32224 -- Avoided suppressing connection errors in supports_json_field ↵Mariusz Felisiak2020-11-251-0/+18
| | | | | | | on SQLite.` Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Juan Garcia Alvite for the report.
* Corrected tests.backends.sqlite.tests.Tests.test_aggregation()'s docstring.Mariusz Felisiak2020-09-131-3/+1
|
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-1/+1
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Fixed #31479 -- Added support to reset sequences on SQLite.Jon Dufresne2020-04-211-3/+14
|
* Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on ↵Jon Dufresne2020-04-171-22/+2
| | | | | | | | | | | | 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/+94
|
* Fixed #31228 -- Reallowed aggregates to be used with multiple expressions ↵Taoup2020-02-181-0/+9
| | | | | | | | and no DISTINCT on SQLite. Regression in bc05547cd8c1dd511c6b6a6c873a1bc63417b111. Thanks Andy Terra for the report.
* Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne2020-02-061-2/+4
|
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-5/+3
|
* Refs #31117 -- Isolated backends.sqlite.test_creation.TestDbSignatureTests.Mariusz Felisiak2019-12-311-9/+7
|
* Fixed #30413 -- Fixed test database signature on SQLite when test database ↵Farhaan Bukhsh2019-11-211-0/+18
| | | | | | | | name is provided. Previously, the same signature was created for multiple in-memory databases on SQLite when they had tests databases names DATABASES['TEST']['NAME'].
* Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne2019-11-071-1/+17
|
* Fixed #30183 -- Added introspection of inline SQLite constraints.Paveł Tyślacki2019-03-131-0/+115
|
* Fixed a failure when running tests on systems with SQLite < 3.8.3.Tim Graham2019-02-211-1/+6
|
* Refs #30055 -- Added a helpful error when SQLite is too old.Tim Graham2019-01-281-0/+11
|
* Fixed #28658 -- Added DISTINCT handling to the Aggregate class.Simon Charette2019-01-091-0/+12
|
* Refs #29182 -- Corrected SQLite's supports_atomic_references_rename feature ↵Simon Charette2018-12-221-1/+5
| | | | flag.
* Renamed SQLite3 references to to SQLite.Simon Charette2018-12-221-2/+2
| | | | The version suffix isn't part of the product name.
* Refs #29182 -- Stopped relying on legacy alter table semantic on SQLite 3.26+.Simon Charette2018-12-171-3/+3
| | | | | | | | SQLite 3.26 changed the behavior of table and column renaming operations to repoint foreign key references even if foreign key checks are disabled. This makes the workarounds in place to simulate this behavior unnecessary on SQLite 3.26+. Refs #30033.
* Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks ↵Simon Charette2018-12-151-17/+47
| | | | | | | | | | | | | are enabled. Prior to this change foreign key constraint references could be left pointing at tables dropped during operations simulating unsupported table alterations because of an unexpected failure to disable foreign key constraint checks. SQLite3 does not allow disabling such checks while in a transaction so they must be disabled beforehand. Thanks ezaquarii for the report and Carlton and Tim for the review.
* Fixed #29500 -- Fixed SQLite function crashes on null values.Srinivas Reddy Thatiparthy2018-09-101-0/+16
| | | | | Co-authored-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
* Fixed #29350 -- Fix get_primary_key_column() method in sqlite3 backendZackary Troop2018-04-281-0/+27
| | | | Thanks Tim Graham and Mariusz Felisiak for the reviews.
* Fixed #28849 -- Fixed referenced table and column rename on SQLite.Simon Charette2017-12-011-1/+41
| | | | Thanks Ramiro for the input and Tim for the review.
* Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne2017-11-281-8/+8
|
* Fixed #28665 -- Change some database exceptions to NotImplementedError per ↵Simon Charette2017-10-061-4/+5
| | | | PEP 249.
* Refs #28584 -- Removed unused DatabaseFeatures.can_share_in_memory_db.Tim Graham2017-10-031-18/+3
|
* Reorganized backends tests.Mariusz Felisiak2017-06-212-0/+138