Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #25630 -- Replaced AsGeoHash with GeoHash in unsupported functions of DB backends. #5501

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions django/contrib/gis/db/backends/base/operations.py
Expand Up @@ -56,9 +56,9 @@ class BaseSpatialOperations(object):

# Blacklist/set of known unsupported functions of the backend
unsupported_functions = {
'Area', 'AsGeoHash', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
'Area', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
'BoundingCircle', 'Centroid', 'Difference', 'Distance', 'Envelope',
'ForceRHR', 'Intersection', 'Length', 'MemSize', 'NumGeometries',
'ForceRHR', 'GeoHash', 'Intersection', 'Length', 'MemSize', 'NumGeometries',
'NumPoints', 'Perimeter', 'PointOnSurface', 'Reverse', 'Scale',
'SnapToGrid', 'SymDifference', 'Transform', 'Translate',
'Union',
Expand Down
6 changes: 3 additions & 3 deletions django/contrib/gis/db/backends/oracle/operations.py
Expand Up @@ -126,10 +126,10 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
truncate_params = {'relate': None}

unsupported_functions = {
'AsGeoHash', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',
'BoundingCircle', 'Envelope',
'ForceRHR', 'MemSize', 'Scale',
'SnapToGrid', 'Translate', 'GeoHash',
'ForceRHR', 'GeoHash', 'MemSize', 'Scale',
'SnapToGrid', 'Translate',
}

def geo_quote_name(self, name):
Expand Down