summaryrefslogtreecommitdiff
path: root/django/db/models/functions/comparison.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #470 -- Added support for database defaults on fields.Ian Foote2023-05-121-0/+1
| | | | | | | | Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews.
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-151-1/+9
| | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+2
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-41/+59
|
* Fixed #33141 -- Renamed Expression.empty_aggregate_value to ↵David Wobrock2021-09-291-2/+2
| | | | empty_result_set_value.
* Refs #26430 -- Re-introduced empty aggregation optimization.Simon Charette2021-07-021-0/+8
| | | | | | | | | | | | The introduction of the Expression.empty_aggregate_value interface allows the compilation stage to enable the EmptyResultSet optimization if all the aggregates expressions implement it. This also removes unnecessary RegrCount/Count.convert_value() methods. Disabling the empty result set aggregation optimization when it wasn't appropriate prevented None returned for a Count aggregation value. Thanks Nick Pope for the review.
* Refs #32858, Refs #32392 -- Restored using :: shortcut syntax in Cast() on ↵Mariusz Felisiak2021-06-221-0/+6
| | | | | | | PostgreSQL. This partly reverts commit fdfbc66331292def201c9344e3cd29fbcbcd076a unnecessary since b69b0c3fe871167a0ca01bb439508e335143801f.
* Fixed #32392 -- Fixed ExclusionConstraint crash with Cast() in expressions.Tilman Koschnick2021-01-291-6/+0
|
* Fixed #32179 -- Added JSONObject database function.Artur Beltsov2020-12-021-0/+42
|
* Fixed #21181 -- Added Collate database function.Tom Carrick2020-08-111-0/+18
| | | | Thanks Simon Charette for reviews.
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-1/+14
| | | | | | | | | | | 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>
* Simplified overriding source expressions in some database functions.Nick Pope2019-01-141-7/+3
|
* Refs #28643 -- Added NullIf database function.Mads Jensen2019-01-101-1/+12
| | | | Thanks Nick Pope, Mariusz Felisiak, and Tim Graham for reviews.
* Simplified some imports for database functions.Nick Pope2019-01-081-1/+1
| | | Used more specific modules to reduce the risk of circular imports.
* Fixed #29767 -- Made date-related casts work on SQLiteClaude Paroz2018-10-011-0/+14
| | | | Thanks Rémy Hubscher for the report and Tim Graham and Simon Charette for the reviews.
* Fixed #29048 -- Added **extra_context to database function as_vendor() methods.priyanshsaxena2018-08-231-11/+11
|
* Fixed #28857 -- Fixed invalid SQL when using Cast with complex expressions ↵hayashi2018-01-171-1/+3
| | | | on PostgreSQL.
* Fixed #28967 -- Prevented Cast to FloatField from rounding to integer on MySQL.Sergey Fedoseev2017-12-271-0/+5
|
* Refs #28643 -- Reorganized database functions.Mariusz Felisiak2017-10-131-0/+84
Thanks Tim Graham for the review.