mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed type in MySQL spatial backend.
This commit is contained in:
@@ -44,7 +44,7 @@ class MySQLOperations(DatabaseOperations, BaseSpatialOperations):
|
|||||||
modify the placeholder based on the contents of the given value.
|
modify the placeholder based on the contents of the given value.
|
||||||
"""
|
"""
|
||||||
if hasattr(value, 'expression'):
|
if hasattr(value, 'expression'):
|
||||||
placeholder = placeholder % self.get_expression_column(value)
|
placeholder = self.get_expression_column(value)
|
||||||
else:
|
else:
|
||||||
placeholder = '%s(%%s)' % self.from_text
|
placeholder = '%s(%%s)' % self.from_text
|
||||||
return placeholder
|
return placeholder
|
||||||
|
|||||||
Reference in New Issue
Block a user