mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed type in MySQL spatial backend.
This commit is contained in:
parent
cd99c12f05
commit
d99639da03
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue