summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34201 -- Bumped minimum supported SQLite to 3.21.0.Mariusz Felisiak2022-12-081-96/+46
|
* Used super().execute/executemany() in SQLiteCursorWrapper.Nick Pope2022-11-081-3/+3
|
* Fixed #10070 -- Added support for pyformat style parameters on SQLite.Ryan Cheley2022-11-081-8/+29
| | | | Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Removed obsolete references to pysqlite.Nick Pope2022-11-041-2/+2
| | | | Obsolete since 1b06d5e6f6be8e567ce78c892c485af039830d7d.
* Fixed #33960 -- Fixed migrations crash on SQLite < 3.26.Mariusz Felisiak2022-08-291-1/+1
| | | | | Regression in 0b95a96ee10d3e12aef01d449467bcf4641286b4. Thanks Aristotelis Mikropoulos for the report.
* Stopped using default adapters/converters on SQLite backend.Mariusz Felisiak2022-07-211-1/+13
| | | | Default adapters/converters were deprecated in Python 3.12, see https://github.com/python/cpython/issues/90016.
* Fixed #33379 -- Added minimum database version checks.Hasan Ramezani2022-02-181-12/+3
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-96/+128
|
* Refs #33355 -- Moved SQLite functions to separate module.Adam Johnson2021-12-231-289/+4
| | | | Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
* Refs #33355 -- Optimized LPad() database function on SQLite.Adam Johnson2021-12-231-2/+3
| | | | Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
* Refs #33355 -- Optimized Trunc() on SQLite by using f-strings.Adam Johnson2021-12-221-16/+16
| | | | Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
* Refs #33355 -- Fixed Trunc() with years < 1000 on SQLite.Adam Johnson2021-12-131-13/+13
| | | | | | Thanks to Nick Pope for spotting the bug in Code Review. Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
* Fixed #31765 -- Enforced enhanced ALTER TABLE behavior for SQLite connections.Adam Johnson2021-12-071-0/+3
|
* Fixed #33279 -- Fixed handling time zones with "-" sign in names.Can Sarigol2021-11-121-8/+5
| | | | | | Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1.
* Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak2021-11-101-2/+2
| | | Thanks Simon Charette for the report.
* Fixed #28401 -- Allowed hashlib.md5() calls to work with FIPS kernels.Ade Lee2021-10-121-1/+2
| | | | | | | | | | | | | | | | | | | md5 is not an approved algorithm in FIPS mode, and trying to instantiate a hashlib.md5() will fail when the system is running in FIPS mode. md5 is allowed when in a non-security context. There is a plan to add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate whether or not the instance is being used in a security context. In the case where it is not, the instantiation of md5 will be allowed. See https://bugs.python.org/issue9216 for more details. Some downstream python versions already support this parameter. To support these versions, a new encapsulation of md5() has been added. This encapsulation will pass through the usedforsecurity parameter in the case where the parameter is supported, and strip it if it is not. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #32365 -- Made zoneinfo the default timezone implementation.Carlton Gibson2021-09-161-5/+5
| | | | | Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews.
* Refs #25287 -- Added support for multiplying and dividing DurationField by ↵Tobias Bengfort2021-04-201-1/+6
| | | | scalar values on SQLite.
* Refs #25287 -- Added _sqlite_prepare_dtdelta_param() hook.Tobias Bengfort2021-04-201-9/+19
|
* Fixed typo in django/db/backends/sqlite3/base.py comment.Chris Jerdonek2021-02-231-1/+1
|
* Fixed #32355 -- Dropped support for Python 3.6 and 3.7Mariusz Felisiak2021-02-101-11/+5
|
* Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak2021-01-141-1/+0
|
* Fixed #32303 -- Bumped minimum supported SQLite to 3.9.0.Mariusz Felisiak2020-12-301-2/+4
|
* Fixed #32158 -- Fixed loaddata crash on SQLite when table/column names are ↵Chinmoy Chakraborty2020-12-281-3/+8
| | | | SQL keywords.
* Fixed #32201 -- Removed obsolete isort:skip's.Seamus Quinn2020-11-191-6/+6
| | | Obsolete as of isort 5.
* Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a ↵David-Wobrock2020-10-141-9/+13
| | | | specific timezone.
* Fixed #32060 -- Added Random database function.Nick Pope2020-10-021-0/+4
|
* Fixed #31836 -- Dropped support for JSONField __contains and __contained_by ↵Mariusz Felisiak2020-07-281-10/+0
| | | | | | | | | | lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
* Removed duplicated sqlite3 converter.Sergey Fedoseev2020-07-031-1/+0
| | | | Converters typenames are case-insensitive. See https://docs.python.org/3/library/sqlite3.html#sqlite3.register_converter.
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-0/+12
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #31030 -- Registered SQLite functions as deterministic on Python 3.8+.Sergey Fedoseev2020-04-061-43/+51
|
* Fixed #31396 -- Added binary XOR operator to F expressions.Hannes Ljungberg2020-03-251-0/+1
|
* Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne2020-02-061-2/+3
|
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-3/+3
|
* Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede2019-11-191-0/+2
|
* Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne2019-11-071-1/+3
|
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-1/+2
|
* Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day ↵Anatol Ulrich2019-10-021-0/+2
| | | | lookup.
* Fixed #30661 -- Added models.SmallAutoField.Nick Pope2019-08-021-0/+2
|
* Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin2019-06-201-0/+3
| | | | | This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django.
* Fixed #30128 -- Fixed handling timedelta timezone in database functions.can2019-06-131-0/+8
|
* Fixed #28373 -- Used connection timezone instead of UTC when making dates ↵can2019-04-081-14/+16
| | | | | | | | timezone-aware on MySQL, SQLite, and Oracle. Thanks vtalpaert for the initial patch. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #30271 -- Added the Sign database function.Nick Pope2019-03-221-0/+1
|
* Fixed #30240 -- Added SHA1, SHA224, SHA256, SHA384, and SHA512 database ↵Nick Pope2019-03-201-0/+5
| | | | | functions. Thanks Mariusz Felisiak and Tim Graham for reviews.
* Refs #28643 -- Added MD5 database function.Mariusz Felisiak2019-02-211-0/+2
| | | Thanks Tim Graham, Nick Pope and Simon Charette for reviews.
* Refs #30055 -- Added a helpful error when SQLite is too old.Tim Graham2019-01-281-0/+7
|
* Refs #28643 -- Added Reverse database function.Nick Pope2019-01-121-0/+1
| | | | Thanks Mariusz Felisiak for Oracle advice and review.
* Fixed #30056 -- Added SQLite support for StdDev and Variance functions.Nick Pope2018-12-241-0/+13
|
* Refs #29928 -- Added supports_pragma_foreign_key_check SQLite feature flag.Simon Charette2018-12-221-1/+1
|
* Renamed SQLite3 references to to SQLite.Simon Charette2018-12-221-1/+1
| | | | The version suffix isn't part of the product name.