1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests/gis_tests
Simon Charette c2d4926702 Fixed #31910 -- Fixed crash of GIS aggregations over subqueries.
Regression was introduced by fff5186 but was due a long standing issue.

AggregateQuery was abusing Query.subquery: bool by stashing its
compiled inner query's SQL for later use in its compiler which made
select_format checks for Query.subquery wrongly assume the provide
query was a subquery.

This patch prevents that from happening by using a dedicated
inner_query attribute which is compiled at a later time by
SQLAggregateCompiler.

Moving the inner query's compilation to SQLAggregateCompiler.compile
had the side effect of addressing a long standing issue with
aggregation subquery pushdown which prevented converters from being
run. This is now fixed as the aggregation_regress adjustments
demonstrate.

Refs #25367.

Thanks Eran Keydar for the report.
2020-11-04 09:54:58 +01:00
..
data
distapp Made OracleSpatialAdapter clone geometries rather than mutate them. 2020-10-27 07:14:16 +01:00
gdal_tests Fixed #31766 -- Made GDALRaster.transform() return a clone for the same SRID and driver. 2020-09-11 10:31:38 +02:00
geo3d Prevented creation of 3D test models if not supported. 2020-09-15 07:48:48 +02:00
geoadmin
geoapp Fixed #31910 -- Fixed crash of GIS aggregations over subqueries. 2020-11-04 09:54:58 +01:00
geogapp
geos_tests Fixed #30678 -- Added support for GDAL 3. 2020-05-12 09:06:06 +02:00
gis_migrations Added DatabaseFeatures.can_alter_geometry_field. 2020-10-19 12:41:52 +02:00
inspectapp Prevented creation of 3D test models if not supported. 2020-09-15 07:48:48 +02:00
layermap
rasterapp Bumped minimum isort version to 5.1.0. 2020-07-30 10:58:59 +02:00
relatedapp Removed unneeded @no_oracle skips. 2020-10-27 07:14:16 +01:00
__init__.py
admin.py
models.py
test_data.py
test_fields.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
test_geoforms.py Fixed #30678 -- Added support for GDAL 3. 2020-05-12 09:06:06 +02:00
test_geoip2.py Fixed #30461 -- Made GeoIP2 and GEOIP_PATH setting accept pathlib.Path as library path. 2019-08-13 19:44:10 +02:00
test_gis_tests_utils.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
test_measure.py
test_ptr.py
test_spatialrefsys.py Removed hardcoded paths to SpatialRefSys models in tests. 2020-09-14 07:58:05 +02:00
tests.py Bumped minimum isort version to 5.1.0. 2020-07-30 10:58:59 +02:00
utils.py Removed unneeded @no_oracle skips. 2020-10-27 07:14:16 +01:00