Simon Charette
7806e45454
[2.2.x] Fixed #30769 -- Fixed a crash when filtering against a subquery JSON/HStoreField annotation.
...
This was a regression introduced by 7deeabc7c7
to address CVE-2019-14234.
Thanks Tim Kleinschmidt for the report and Mariusz for the tests.
Backport of 6c3dfba892
from master
2019-09-16 08:53:31 +02:00
Mariusz Felisiak
6624a3de28
[2.2.x] Fixed test_json.TestQuerying.test_key_transform_expression() on Python 3.5.
2019-08-15 19:38:12 +02:00
Mariusz Felisiak
52a7759a49
[2.2.x] Fixed #30672 -- Fixed crash of JSONField/HStoreField key transforms on expressions with params.
...
Regression in 4f5b58f5cd
.
Thanks Florian Apolloner for the report and helping with tests.
Backport of 1f8382d34d
from master.
2019-08-14 15:29:13 +02:00
Mariusz Felisiak
4f5b58f5cd
[2.2.x] Fixed CVE-2019-14234 -- Protected JSONField/HStoreField key and index lookups against SQL injection.
...
Thanks to Sage M. Abdullah for the report and initial patch.
Thanks Florian Apolloner for reviews.
2019-07-29 11:06:54 +02:00
Mariusz Felisiak
1088a9777d
[2.2.x] Fixed #30621 -- Fixed crash of __contains lookup for Date/DateTimeRangeField when the right hand side is the same type.
...
Thanks Tilman Koschnick for the report and initial patch.
Thanks Carlton Gibson for the review.
Regression in 6b048b364c
.
Backport of 7991111af1
from master
2019-07-10 10:34:49 +02:00
Caio Ariede
1172f078eb
[2.2.x] Fixed #30315 -- Fixed crash of ArrayAgg and StringAgg with ordering when used in Subquery.
...
Backport of a3f91891d2
from master.
2019-05-28 10:39:28 +02:00
Thomasina Lee
3d4e53bcb1
[2.2.x] Fixed #30488 -- Removed redundant Coalesce call in SQL generated by SearchVector.
...
Regression in 405c836336
.
Backport of c38e7a79f4
from master
2019-05-20 09:12:32 +02:00
Simon Charette
88bf635c35
[2.2.x] Fixed #30385 -- Restored SearchVector(config) immutability.
...
Regression in 1a28dc3887
.
The usage of CONCAT to allow SearchVector to deal with non-text fields
made the generated expression non-IMMUTABLE which prevents a functional
index to be created for it.
Using a combination of COALESCE and ::text makes sure the expression
preserves its immutability.
Refs #29582 . Thanks Andrew Brown for the report, Nick Pope for the
review.
Backport of 405c836336
from master
2019-04-23 08:32:36 +02:00
can
e85317d731
[2.2.x] Fixed #30335 , #29139 -- Fixed crash when ordering or aggregating over a nested JSONField key transform.
...
Backport of d87bd29c4f
from master.
2019-04-18 07:37:48 +02:00
Simone Pellizzari
268ed9cd8a
[2.2.x] Fixed #30332 -- Fixed crash of ordering by expressions with params in ArrayAgg and StringAgg.
...
Backport of d0315584b5
from master.
2019-04-06 15:15:40 +02:00
oliver
8cff329802
[2.2.x] Used QuerySet.bulk_create() in a couple of postgres tests.
...
Follow up to 0ce2ad9ca4
.
Backport of 2aaabe2004
from master.
2019-03-21 18:05:42 -04:00
Simon Charette
883d87074d
[2.2.x] Fixed #30258 -- Adjusted postgres schema value quoting of ranges.
...
Thanks Tilman Koschnick for the report and patch.
Backport of 386d89ab55
from master
2019-03-18 09:32:09 +01:00
Tim Graham
710052fee9
[2.2.x] Refs #30111 -- Fixed test cleanup in postgres_tests/test_integration.py.
...
Fixed "ERROR: Step ‘Publish JUnit test result report’ failed: No test report
files were found. Configuration error?" on Jenkins because report files were
put in tests/postgres_tests.
Backport of 2de7eb6f4d
from master.
2019-01-23 13:17:29 -05:00
Nasir Hussain
6ce7887f13
[2.2.x] Fixed #30111 -- Fixed AppRegistryNotReady error with django.contrib.postgres in INSTALLED_APPS.
...
Regression in e192223ed9
.
Backport of 2804b8d215
from master.
2019-01-22 17:50:00 -05:00
Simon Charette
b2c598e30d
Removed unnecessary skipUnlessDBFeature.
...
None of the tests interact with the database.
2019-01-13 21:48:40 -05:00
can
e192223ed9
Fixed #29738 -- Allowed serializing psycopg2 range types in migrations.
2019-01-11 19:32:26 -05:00
Jaap Roes
8a1a919468
Fixed #29997 -- Allowed combining SearchQuerys with different configs.
...
Seems to be a needless restriction in
978a00e39f
.
2018-11-30 09:42:50 -05:00
Tim Graham
41db8cb252
Used assertCountEqual() in contrib.postgres.search tests.
2018-11-29 14:43:53 -05:00
Simon Charette
7f63b894c0
Adjusted code style of a few test data setup methods.
...
Thanks Mariusz for suggesting it.
2018-11-27 09:48:22 -05:00
Simon Charette
84e7a9f4a7
Switched setUp() to setUpTestData() where possible in Django's tests.
2018-11-27 09:35:17 -05:00
Tim Graham
193c109327
Switched TestCase to SimpleTestCase where possible in Django's tests.
2018-11-27 08:58:44 -05:00
Sergey Fedoseev
80ba7a881f
Fixed cached_properties that share a common property.
...
The aliases aren't cached and thus the old usage will be an error after
refs #29478 .
2018-11-19 08:59:46 -05:00
Simon Charette
2f120ac517
Fixed #29945 -- Moved contrib.postgres uninstallation logic to the app config.
2018-11-12 11:15:48 -05:00
Jayantha Gumballi
dfcdc8992f
Fixed #29886 -- Fixed unaccent lookup when PostgreSQL's standard_conforming_strings option is off.
...
Thanks Tom McClure for the patch.
2018-11-01 11:14:34 -04:00
Mads Jensen
a906c98982
Fixed #29547 -- Added support for partial indexes.
...
Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and
Markus Holtermann for comments and feedback.
2018-10-29 19:34:54 -04:00
Jon Dufresne
31c0348687
Fixed postgres_tests.test_signals.OIDTests when run in isolation.
2018-10-09 09:23:36 -04:00
Stefano Chiodino
6de7f9ec60
Fixed #29598 -- Deprecated FloatRangeField in favor of DecimalRangeField.
2018-10-02 19:17:23 -04:00
Tom Forbes
9cbdb44014
Fixed #23646 -- Added QuerySet.bulk_update() to efficiently update many models.
2018-09-18 16:14:44 -04:00
Claude Paroz
f5e347a640
Fixed #27899 -- Added support for phrase/raw searching in SearchQuery.
...
Thanks Tim Graham, Nick Pope, and Claude Paroz for contribution and review.
2018-09-17 12:03:52 -04:00
Tom Forbes
a3df7574f9
Fixed #29644 -- Made SearchQuery.__str__() reflect negation and grouping.
2018-08-15 16:47:23 -04:00
Nick Pope
743d28f553
Refs #27869 -- Added PostgreSQL version check for GinIndex support.
2018-08-02 11:53:35 -04:00
Nick Pope
ff9543b351
Refs #25809 , #28990 -- Added PostgreSQL version check for BrinIndex support.
2018-08-02 11:50:40 -04:00
Nick Pope
6b4d1ec8ff
Fixed #29614 -- Added BTreeIndex to django.contrib.postres.
2018-08-02 11:42:57 -04:00
Nick Pope
d6381d3559
Fixed #28990 -- Added autosummarize parameter to BrinIndex.
2018-08-02 11:26:58 -04:00
Nick Pope
4c36e9e492
Fixed #28887 -- Added SpGistIndex to django.contrib.postgres.
2018-08-02 11:08:08 -04:00
Nick Pope
d526b07784
Fixed #26974 -- Added HashIndex to django.contrib.postgres.
...
Thanks Akshesh Doshi for the initial implementation.
2018-08-02 10:39:18 -04:00
Nick Pope
fa54ebc722
Simplified tests for PostgreSQL indexes.
...
- Added mixin to make tests more DRY.
- Removed redundant equality tests.
2018-08-02 10:07:10 -04:00
vinay karanam
3af695eda2
Fixed #28291 , #24726 -- Fixed ArrayField with JSONField and RangeFields.
2018-07-27 11:35:54 -04:00
Simon Charette
1a28dc3887
Fixed #29582 -- Fixed a crash when using SearchVector with non text-fields.
...
The PostgreSQL concat() function handles nulls and non-text values better than
the || operator.
2018-07-21 21:32:21 -04:00
Floris den Hengst
96199e562d
Fixed #26067 -- Added ordering support to ArrayAgg and StringAgg.
2018-06-28 20:29:33 -04:00
Hasan Ramezani
b33f10d8cc
Refs #29131 -- Made ArrayField error messages index from 1 instead of 0.
2018-04-22 22:18:46 -04:00
Alasdair Nicol
65c44a5c1d
Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
...
Thanks erindy for the report.
2018-04-10 09:33:05 -04:00
Vinay Karanam
6a1957bb98
Fixed #28950 -- Fixed ArrayField.has_changed() for empty values.
2018-04-07 17:53:33 -04:00
Vinay Karanam
e67dc0fbb2
Added tests for ArrayField.has_changed().
2018-04-07 17:48:29 -04:00
Dmitry Dygalo
c979c0a2b8
Fixed #25718 -- Made a JSONField lookup value of None match keys that have a null value.
2018-04-04 10:53:46 -04:00
Tim Graham
4f7467b690
Refs #28577 -- Added check for HStoreField to prevent mutable default.
2018-04-03 11:12:56 -04:00
Tim Graham
623139b5d1
Refs #29147 --- Added JSONField serialization tests.
2018-03-21 20:11:06 -04:00
Tim Graham
5fa4f40f45
Fixed #29227 -- Allowed BooleanField to be null=True.
...
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-20 12:10:10 -04:00
Matthew Wilkes
2162f0983d
Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).
2018-02-10 19:08:55 -05:00
Jon Dufresne
ff05de760c
Fixed #29038 -- Removed closing slash from HTML void tags.
2018-01-21 02:09:10 -05:00