django1/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 Fixed #30020 -- Fixed reading nulls with LayerMapping. 2019-01-31 19:50:16 -05:00
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 Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00
geoapp Fixed #31910 -- Fixed crash of GIS aggregations over subqueries. 2020-11-04 09:54:58 +01:00
geogapp Reverted "Fixed relative paths imports per isort 4.3.5." 2019-03-03 19:33:48 +01:00
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 Fixed #30020 -- Fixed reading nulls with LayerMapping. 2019-01-31 19:50:16 -05:00
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 Stopped conditional discovery of gis_tests apps 2015-04-18 15:17:49 +02:00
models.py Refs #26753 -- Removed obsolete workarounds in GIS tests for lack of GDAL. 2016-11-15 11:46:06 -05:00
test_data.py Fixed #28982 -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
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 Fixed #30341 -- Added support for the furlong unit in Distance. 2019-04-19 08:54:23 +02:00
test_ptr.py Fixed #29543 -- Fixed CPointerBase.__del__() ImportError crash. 2018-07-06 11:26:14 -04:00
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