Removed unused quoting/encoding in gis db backend
This commit is contained in:
parent
7e5ebcce53
commit
690170a8b9
|
@ -90,8 +90,6 @@ class BaseSpatialOperations(object):
|
||||||
|
|
||||||
# For quoting column values, rather than columns.
|
# For quoting column values, rather than columns.
|
||||||
def geo_quote_name(self, name):
|
def geo_quote_name(self, name):
|
||||||
if isinstance(name, six.text_type):
|
|
||||||
name = name.encode('ascii')
|
|
||||||
return "'%s'" % name
|
return "'%s'" % name
|
||||||
|
|
||||||
# GeometryField operations
|
# GeometryField operations
|
||||||
|
|
|
@ -3,20 +3,6 @@ A collection of utility routines and classes used by the spatial
|
||||||
backends.
|
backends.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from django.utils import six
|
|
||||||
|
|
||||||
def gqn(val):
|
|
||||||
"""
|
|
||||||
The geographic quote name function; used for quoting tables and
|
|
||||||
geometries (they use single rather than the double quotes of the
|
|
||||||
backend quotename function).
|
|
||||||
"""
|
|
||||||
if isinstance(val, six.string_types):
|
|
||||||
if isinstance(val, six.text_type): val = val.encode('ascii')
|
|
||||||
return "'%s'" % val
|
|
||||||
else:
|
|
||||||
return str(val)
|
|
||||||
|
|
||||||
class SpatialOperation(object):
|
class SpatialOperation(object):
|
||||||
"""
|
"""
|
||||||
Base class for generating spatial SQL.
|
Base class for generating spatial SQL.
|
||||||
|
|
Loading…
Reference in New Issue