summaryrefslogtreecommitdiff
path: root/django/contrib/postgres
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34459 -- Fixed SearchVector() crash for parameters with % symbol.Mariusz Felisiak2023-04-061-4/+1
| | | | | | Thanks Patryk Zawadzki for the report. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
* Updated translations from Transifex.Mariusz Felisiak2023-04-0344-225/+340
| | | | Forwardport of fa687719321329f4e5017b7fc1b8cadae3c63c32 from stable/4.2.x.
* Fixed #34338 -- Allowed customizing code of ValidationError in ↵Xavier Fernandez2023-02-231-4/+19
| | | | BaseConstraint and subclasses.
* Refs #33829 -- Added violation_error_message to constraints' __repr__().Xavier Fernandez2023-02-231-1/+7
|
* Fixed #34285 -- Fixed index/slice lookups on filtered aggregates with ↵Nils VAN ZUIJLEN2023-02-071-2/+6
| | | | | | ArrayField. Thanks Simon Charette for the review.
* Refs #34233 -- Used types.NoneType.Nick Pope2023-01-181-3/+5
| | | Available since Python 3.10 where it was reintroduced.
* Refs #33342 -- Removed ExclusionConstraint.opclasses per deprecation timeline.Mariusz Felisiak2023-01-171-30/+1
|
* Refs #10929 -- Stopped forcing empty result value by PostgreSQL aggregates.Mariusz Felisiak2023-01-171-62/+5
| | | | Per deprecation timeline.
* Updated source translation catalogs.Mariusz Felisiak2023-01-171-21/+20
| | | | Forward port of 6fef789e456204752ec6b77b41740d67553fdd6f from stable/4.2.x.
* Updated translations from Transifex.Mariusz Felisiak2022-12-204-6/+18
| | | | | | | Updated Bulgarian, Esperanto, Hungarian, Japanese, Macedonian, Persian, Portuguese (Brazil), Russian, Spanish, and Turkmen translations. Forwardport of 46b28bbe151282e9198b719d00f84b48c92606ba from stable/4.1.x.
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-155-32/+75
| | | | | | | 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 #33308 -- Added DatabaseOperations.compose_sql() on PostgreSQL.Florian Apolloner2022-12-121-8/+1
|
* Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.Florian Apolloner2022-12-123-8/+12
|
* Fixed #34205 -- Fixed Meta.constraints validation crash with ArrayField and ↵James Gillard2022-12-101-1/+1
| | | | | | | __len lookup. Regression in 88fc9e2826044110b7b22577a227f122fe9c1fb5 that began manifesting in Django 4.1.
* Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵Simon Charette2022-12-011-6/+46
| | | | | | | to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms.
* Refs #33308 -- Added get_type_oids() hook and simplified registering type ↵Daniele Varrazzo2022-12-011-32/+25
| | | | handlers on PostgreSQL.
* Fixed #26056 -- Added QuerySet.values()/values_list() support for ↵Ben Cail2022-11-181-0/+8
| | | | | | ArrayField's __overlap lookup. Thanks Mads Jensen and kosz85 and the initial patch.
* Fixed #34149 -- Allowed adding deferrable conditional exclusion constraints ↵Márton Salomváry2022-11-101-2/+0
| | | | on PostgreSQL.
* Fixed #34080 -- Fixed __exact lookup when nested arrays contain only NULL ↵Ion Alberdi2022-11-031-1/+10
| | | | | | values. Thanks jerch and David Sanders for reviews.
* Fixed #34071 -- Improved error message for Range(Min/Max)ValueValidator.Jack Linke2022-10-051-2/+2
|
* Fixed #34016 -- Fixed QuerySet.values()/values_list() crash on ArrayAgg() ↵Alexander Kerkum2022-09-171-2/+5
| | | | | | and JSONBAgg(). Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
* Replaced Expression.replace_references() with .replace_expressions().Simon Charette2022-08-111-1/+2
| | | | | | | The latter allows for more generic use cases beyond the currently limited ones constraints validation has. Refs #28333, #30581.
* Optimized ExclusionConstraint.validate() a bit.Mariusz Felisiak2022-08-111-8/+7
| | | | | References to excluded fields are omitted in the replacement_map, so there is no need to replace references before checking for exclusions.
* Used F.replace_references().Mariusz Felisiak2022-08-111-1/+1
| | | | Follow up to 63884829acd207404f2a5c3cc1d6b4cd0a822b70.
* Fixed #33905 -- Fixed CheckConstraint() validation on range fields.David Sanders2022-08-091-0/+3
| | | | Bug in 667105877e6723c6985399803a364848891513cc.
* Fixed #33872 -- Deprecated ↵Mariusz Felisiak2022-08-032-12/+84
| | | | django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
* Updated translations from Transifex.Mariusz Felisiak2022-08-032-3/+4
| | | | | | | | This also fixes related i18n tests. Forwardport of a3bab9332416f655c6ae0fa306c94f7f52e7398d from stable/4.1.x. Co-authored-by: Claude Paroz <claude@2xlibre.net>
* Fixed #33881 -- Added support for database collations to ↵Mariusz Felisiak2022-08-021-0/+6
| | | | ArrayField(Char/TextFields).
* Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle ↵Stéphane "Twidi" Angel2022-07-081-0/+1
| | | | | | violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc.
* Fixed #33788 -- Added TrigramStrictWordSimilarity() and ↵Matt Brewer2022-06-173-1/+25
| | | | TrigramStrictWordDistance() on PostgreSQL.
* Fixed #33717 -- Dropped support for PostgreSQL 11.Mariusz Felisiak2022-05-193-22/+0
|
* Fixed #30581 -- Added support for Meta.constraints validation.Gagaro2022-05-101-3/+47
| | | | Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
* Fixed #33607 -- Made PostgresIndex.create_sql() respect the "using" argument.Alexandru Mărășteanu2022-04-151-1/+1
|
* Fixed #33397 -- Corrected resolving output_field for ↵Luke Plant2022-03-311-1/+6
| | | | | | | | | | | | | | | | | | DateField/DateTimeField/TimeField/DurationFields. This includes refactoring of CombinedExpression._resolve_output_field() so it no longer uses the behavior inherited from Expression of guessing same output type if argument types match, and instead we explicitly define the output type of all supported operations. This also makes nonsensical operations involving dates (e.g. date + date) raise a FieldError, and adds support for automatically inferring output_field for cases such as: * date - date * date + duration * date - duration * time + duration * time - time
* Prevented initialization of unused database connections.Florian Apolloner2022-03-171-1/+1
|
* Made BaseConstraint importable from django.db.models.Gagaro2022-03-161-2/+1
|
* Fixed #33539 -- Fixed spaces in WITH SQL for indexes on PostgreSQL.Anders Kaseorg2022-02-241-1/+1
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-074-9/+16
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0723-604/+757
|
* Updated translations from Transifex.Claude Paroz2022-01-292-11/+12
| | | | | | Updated Bulgarian, Czech, German, Uzbek, and Vietnamese translations. Forwardport of 7a1c6533eb72c3e6faa308796ba7f8d7d447d3b9 from stable/4.0.x.
* Refs #20349 -- Avoided loading testing libraries when not needed.Collin Anderson2022-01-251-1/+1
|
* Refs #33342 -- Deprecated ExclusionConstraint.opclasses.Hannes Ljungberg2021-12-271-0/+11
|
* Fixed #33342 -- Added support for using OpClass() in exclusion constraints.Hannes Ljungberg2021-12-241-22/+26
|
* Updated translations from Transifex.Mariusz Felisiak2021-12-068-3/+319
| | | | | | | | This also fixes related i18n tests. Forwardport of 4c5215ab036aa8fda9cd0148fd034f4d8f7d69d1 from stable/4.0.x Co-authored-by: Claude Paroz <claude@2xlibre.net>
* Refs #33304 -- Enclosed aggregate ordering logic in an expression.Simon Charette2021-11-231-35/+14
| | | | | This greatly simplifies the implementation of contrib.postgres' OrderableAggMixin and allows for reuse in Window expressions.
* Fixed #27147 -- Allowed specifying bounds of tuple inputs for non-discrete ↵Guilherme Martins Crocetti2021-11-042-3/+41
| | | | range fields.
* Fixed #33262 -- Fixed crash of conditional aggregation on Exists().Hannes Ljungberg2021-11-041-1/+1
|
* Refs #32943 -- Added support for covering exclusion constraints using ↵Nick Pope2021-10-011-6/+16
| | | | SP-GiST indexes on PostgreSQL 14+.
* Refs #32943 -- Added support for covering SP-GiST indexes on PostgreSQL 14+.Nick Pope2021-10-011-0/+7
|
* Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.Nick Pope2021-10-011-1/+6
|