summaryrefslogtreecommitdiff
path: root/django/contrib/gis/db/models/sql/query.py
AgeCommit message (Collapse)Author
2013-11-02Continue to attack E302 violationsAlex Gaynor
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-08-19Fixed GIS regression caused by force_subqAnssi Kääriäinen
Caused by commit 7737305a4f5dc5006d92dac3a61523ad6c2a523a
2012-12-26Fixed #16408 -- Re-fixed value conversion with Spatialite backendClaude Paroz
2012-04-29Switch a datastructure internal to the ORM to be a set, instead of a dictionary.Alex Gaynor
2012-02-29Fixed #17796 -- Rolled back [17588] because the fix for the original relativelyRamiro Morales
corner case (boolean fields under MySQL spatial backend) had a wider scope with potentially unintended consequences affecting the main MySQL backend and the required changes wouldn't be appropiate at this point of the 1.4 development cycle. Refs #15169. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-26Fixed #15169 -- Corrected handling of model boolean fields in MySQL spatial ↵Ramiro Morales
backend. Thanks goes to zmsmith and others for reporting the issue and to Justin Bronn for the fix. Refs #7190, r12578, r12900, #13293, r12939. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-29Fixed #10594 -- `GeoQuerySet` measurment methods no longer crash on geometry ↵Justin Bronn
fields with NULL values. Thanks, whiteinge for the bug report and yourcelf for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-22Fixed #12540, #12541 -- Added database routers, allowing for configurable ↵Russell Keith-Magee
database use behavior in a multi-db setup, and improved error checking for cross-database joins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-16Fixed #11433 -- 3D geometry fields are now supported with PostGIS; EWKB is ↵Justin Bronn
now used by `PostGISAdaptor`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-16Fixed #11489 -- `GeoQuery.resolve_columns` now recognizes annotations; ↵Justin Bronn
disabled problematic test cases on Oracle and added notes on why. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-29Fixed #11381 -- `GeoManager` + `select_related` + nullable `ForeignKey` now ↵Justin Bronn
works correctly. Thanks, bretthoerner for ticket and dgouldin for initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11123 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-21Fixed #10839 -- `GeoQuery` now unpickles properly on Oracle.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-16Fixed #10836 -- Forgot to move import to to `where` module. Thanks, seanl ↵Justin Bronn
for ticket & patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07Fixed #10757 -- Fixed improper selection of primary keys across relations ↵Justin Bronn
when using `GeoManager.values`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01Fixed #9871 -- Geometry objects are now returned in dictionaries and tuples ↵Justin Bronn
returned by `values()` and `values_list()`, respectively; updated `GeoQuery` methods to be compatible with `defer()` and `only`; removed defunct `GeomSQL` class; and removed redundant logic from `Query.get_default_columns`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Refactored and cleaned up parts of the spatial database backend. Changes ↵Justin Bronn
include: * Laid foundations for SpatiaLite support in `GeoQuerySet`, `GeoWhereNode` and the tests. * Added the `Collect` aggregate for PostGIS (still needs tests). * Oracle now goes to 11. * The backend-specific `SpatialRefSys` and `GeometryColumns` models are now attributes of `SpatialBackend`. * Renamed `GeometryField` attributes to be public that were private (e.g., `_srid` -> `srid` and `_geom` -> `geom_type`). * Renamed `create_test_db` to `create_test_spatial_db`. * Removed the legacy classes `GeoMixin` and `GeoQ`. * Removed evil `\` from spatial backend fields. * Moved shapefile data from `tests/layermap` to `tests/data`. Fixed #9794. Refs #9686. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-03Fixed #10159 -- `F()` expressions now work on geographic fields. The tests ↵Justin Bronn
are in `relatedapp`, which has been retrofitted to work with Oracle (minus the prior offending tests). I'm back. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-15Fixed incomplete merge of geographic aggregates; added support for `Extent` ↵Justin Bronn
aggregate to Oracle spatial backend. Refs #3566. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-15Fixed #3566 -- Added support for aggregation to the ORM. See the ↵Russell Keith-Magee
documentation for details on usage. Many thanks to: * Nicolas Lara, who worked on this feature during the 2008 Google Summer of Code. * Alex Gaynor for his help debugging and fixing a number of issues. * Justin Bronn for his help integrating with contrib.gis. * Karen Tracey for her help with cross-platform testing. * Ian Kelly for his help testing and fixing Oracle support. * Malcolm Tredinnick for his invaluable review notes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-06Fixed #9572 -- use `opts` argument. Thanks SeanL for bug report and patch.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-05Fixed `resolve_columns` so that pagination works again on Oracle ↵Justin Bronn
GeoQuerySets; properly set svn:ignore on `sitemaps` subdir. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-18Fixed `GeoQuery.get_columns()` to be compatible with the changes in r8426.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Merged the gis branch into trunk.Justin Bronn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8219 bcc190cf-cafb-0310-a4f2-bffc1f526a37