summaryrefslogtreecommitdiff
path: root/tests/backends/base/test_operations.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵David Wobrock2023-04-181-0/+15
| | | | relation on PostgreSQL.
* 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>
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-39/+68
|
* Fixed #33229 -- Fixed ↵SwastikTripathi2021-11-191-2/+10
| | | | BaseDatabaseOperations.adapt_datetimefield_value()/adapt_timefield_value() crash with expressions.
* Fixed #33214 -- Added ↵Manaia Junior2021-10-221-0/+5
| | | | BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
* Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder ↵Mariusz Felisiak2020-08-281-5/+0
| | | | | | | on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews.
* Fixed #28925 -- Fixed durations-only expressions crash on SQLite and MySQL.Sergey Fedoseev2020-06-301-4/+0
| | | | This removes also unused DatabaseOperations.date_interval_sql().
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-0/+5
| | | | | | | | | | | 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 a/an typos in "SQL" usage.Adam Johnson2020-05-061-1/+1
|
* Fixed #31477 -- Removed "using" argument from ↵Jon Dufresne2020-04-201-1/+1
| | | | DatabaseOperations.execute_sql_flush().
* Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on ↵Jon Dufresne2020-04-171-8/+5
| | | | | | | | | | | | 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-2/+43
|
* Fixed typo in tests/backends/base/test_operations.py.Mariusz Felisiak2020-04-081-13/+13
|
* Fixed typos in docs, comments, and exception messages.Ville Skyttä2019-04-181-1/+1
|
* Refs #28478 -- Prevented database feature based skipping on tests ↵Simon Charette2019-01-141-16/+17
| | | | | | | disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled.
* Fixed #29813 -- Fixed DatabaseOperation test when run in isolation on MySQL.Jon Dufresne2018-10-021-2/+8
|
* Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes2018-02-101-1/+1
|
* Increased test coverage for db/backends/base/operations.py.Mads Jensen2017-09-301-1/+130
|
* Fixed #26608 -- Added support for window expressions (OVER clause).Mads Jensen2017-09-181-0/+10
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.