summaryrefslogtreecommitdiff
path: root/tests/postgres_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34459 -- Fixed SearchVector() crash for parameters with % symbol.Mariusz Felisiak2023-04-061-0/+6
| | | | | | Thanks Patryk Zawadzki for the report. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
* Moved SearchVectorIndexTests.test_search_vector_index to ↵Mariusz Felisiak2023-04-062-21/+15
| | | | postgres_tests.test_indexes.
* Fixed #28553 -- Fixed annotation mismatch with ↵David Wobrock2023-03-241-2/+2
| | | | | | QuerySet.values()/values_list() on compound queries. Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
* Fixed #32172 -- Adapted signals to allow async handlers.Jon Janzen2023-03-071-3/+3
| | | | | co-authored-by: kozzztik <kozzztik@mail.ru> co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Refs #34381, Refs #10929 -- Fixed ↵David Smith2023-03-051-1/+1
| | | | | postgres_tests.test_aggregates.TestGeneralAggretate.test_empty_result_set() on PostgreSQL 14+. Follow up to 0be8095b254fad65b2480d677ebe6098c41bbad6.
* Fixed #34338 -- Allowed customizing code of ValidationError in ↵Xavier Fernandez2023-02-231-1/+39
| | | | BaseConstraint and subclasses.
* Refs #33829 -- Added violation_error_message to constraints' __repr__().Xavier Fernandez2023-02-231-0/+11
|
* Fixed #34346 -- Ordered selected expressions by position.Simon Charette2023-02-201-2/+1
| | | | | | | | | Used the same approach as for #34176 by using selected expressions position to prevent ambiguous aliases in collisions. Thanks henribru for the report. Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
* Fixed #34285 -- Fixed index/slice lookups on filtered aggregates with ↵Nils VAN ZUIJLEN2023-02-071-0/+43
| | | | | | ArrayField. Thanks Simon Charette for the review.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-017-7/+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
* Refs #33342 -- Removed ExclusionConstraint.opclasses per deprecation timeline.Mariusz Felisiak2023-01-171-219/+1
|
* Refs #10929 -- Stopped forcing empty result value by PostgreSQL aggregates.Mariusz Felisiak2023-01-171-65/+13
| | | | Per deprecation timeline.
* Fixed #34176 -- Fixed grouping by ambiguous aliases.Simon Charette2023-01-091-3/+3
| | | | | | | | | | | | | | | Regression in b7b28c7c189615543218e81319473888bc46d831. Refs #31377. Thanks Shai Berger for the report and reviews. test_aggregation_subquery_annotation_values_collision() has been updated as queries that are explicitly grouped by a subquery should always be grouped by it and not its outer columns even if its alias collides with referenced table columns. This was not possible to accomplish at the time 10866a10 landed because we didn't have compiler level handling of colliding aliases.
* Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres2022-12-281-4/+4
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-152-8/+6
| | | | | | | 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 -- Moved psycopg2 imports to the psycopg_any module.Florian Apolloner2022-12-125-10/+15
|
* Fixed #34205 -- Fixed Meta.constraints validation crash with ArrayField and ↵James Gillard2022-12-101-0/+10
| | | | | | | __len lookup. Regression in 88fc9e2826044110b7b22577a227f122fe9c1fb5 that began manifesting in Django 4.1.
* Used homogeneous weights list in SearchRank tests.Florian Apolloner2022-12-061-1/+2
| | | | A homogenous array is required on PostgreSQL.
* Fixed typo in tests/postgres_tests/test_signals.py comment.Daniele Varrazzo2022-12-061-1/+1
|
* Fixed #29084 -- Skipped some postgres_tests.test_search tests when ↵Pablo2022-12-062-1/+20
| | | | pg_catalog isn't English.
* Improved isolation of TestGeneralAggregate.test_default_argument().Simon Charette2022-12-021-2/+2
|
* Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵Simon Charette2022-12-011-5/+61
| | | | | | | 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-1/+2
| | | | handlers on PostgreSQL.
* Refs #33308 -- Ensured type handlers are registered for all PostgreSQL ↵Florian Apolloner2022-12-0111-35/+12
| | | | | | specific tests. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Refs #10929 -- Fixed aggregates crash when passing strings as defaults.Simon Charette2022-11-291-0/+1
| | | | | | Previously strings were interpreted as F() expressions and default crashed with AttributeError: 'F' object has no attribute 'empty_result_set_value'
* Fixed #26056 -- Added QuerySet.values()/values_list() support for ↵Ben Cail2022-11-181-0/+15
| | | | | | 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-10/+33
| | | | on PostgreSQL.
* Fixed #34080 -- Fixed __exact lookup when nested arrays contain only NULL ↵Ion Alberdi2022-11-031-0/+18
| | | | | | values. Thanks jerch and David Sanders for reviews.
* Refs #34080 -- Added tests for __exact lookup when non-nested arrays contain ↵Ion Alberdi2022-11-031-0/+12
| | | | only NULL values.
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-082-8/+8
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Removed hardcoded pks in TestQuerying.test_group_by_order_by_aliases test.Mariusz Felisiak2022-10-071-3/+3
|
* Refs #33308 -- Enabled explicit GROUP BY and ORDER BY aliases.Simon Charette2022-10-061-1/+27
| | | | | | | This ensures explicit grouping from using values() before annotating an aggregate function groups by selected aliases if supported. The GROUP BY feature is disabled on Oracle because it doesn't support it.
* 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-0/+9
| | | | | | and JSONBAgg(). Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
* Fixed #33996 -- Fixed CheckConstraint validation on NULL values.David Sanders2022-09-131-3/+1
| | | | | | Bug in 667105877e6723c6985399803a364848891513cc. Thanks James Beith for the report.
* Fixed #33982 -- Fixed migrations crash when adding model with ↵James Beith2022-09-071-0/+25
| | | | | | ExclusionConstraint. Regression in 0e656c02fe945389246f0c08f51c6db4a0849bd2.
* Fixed #33927 -- Fixed crash when displaying ArrayField with choices in admin.David Wobrock2022-08-231-0/+37
|
* Fixed #33905 -- Fixed CheckConstraint() validation on range fields.David Sanders2022-08-091-0/+35
| | | | Bug in 667105877e6723c6985399803a364848891513cc.
* Refs #33905 -- Added test for CheckConstraint() validation with ArrayField ↵David Sanders2022-08-091-0/+10
| | | | and __contains.
* Fixed #33898 -- Fixed Window() expression crash with ArrayAgg().Mariusz Felisiak2022-08-061-0/+17
| | | | | Thanks Kia for the report. Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
* Fixed #33872 -- Deprecated ↵Mariusz Felisiak2022-08-034-6/+17
| | | | django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
* Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle ↵Mariusz Felisiak2022-07-261-22/+11
| | | | | | the deprecation of migration operations." This reverts commit 41019e48bbf082c985e6ba3bad34d118b903bff1.
* Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle ↵Stéphane "Twidi" Angel2022-07-081-0/+22
| | | | | | violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc.
* Refs #27236 -- Added generic mechanism to handle the deprecation of ↵David Wobrock2022-07-081-11/+22
| | | | migration operations.
* Fixed #33788 -- Added TrigramStrictWordSimilarity() and ↵Matt Brewer2022-06-171-0/+48
| | | | TrigramStrictWordDistance() on PostgreSQL.
* Fixed #33717 -- Dropped support for PostgreSQL 11.Mariusz Felisiak2022-05-194-69/+3
|
* Refs #32339 -- Deprecated default.html form template.David Smith2022-05-172-20/+16
| | | | Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #33704 -- Updated postgres_tests migrations.Mariusz Felisiak2022-05-131-15/+29
|
* Fixed #30581 -- Added support for Meta.constraints validation.Gagaro2022-05-101-26/+75
| | | | Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
* Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.Mariusz Felisiak2022-05-041-3/+1
|