diff options
| author | Justin Bronn <jbronn@gmail.com> | 2012-10-05 18:49:59 -0700 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2012-10-05 18:49:59 -0700 |
| commit | d99639da035f3465633f18c78eee239fd18fce21 (patch) | |
| tree | 92d262a6adf369f5c60bef474dc9d8f97bca039e | |
| parent | cd99c12f05b10cb1b3a07b7b4fcd9fb89785f7a8 (diff) | |
Fixed type in MySQL spatial backend.
| -rw-r--r-- | django/contrib/gis/db/backends/mysql/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/db/backends/mysql/operations.py b/django/contrib/gis/db/backends/mysql/operations.py index 0c1be624f1..fa20ca07f4 100644 --- a/django/contrib/gis/db/backends/mysql/operations.py +++ b/django/contrib/gis/db/backends/mysql/operations.py @@ -44,7 +44,7 @@ class MySQLOperations(DatabaseOperations, BaseSpatialOperations): modify the placeholder based on the contents of the given value. """ if hasattr(value, 'expression'): - placeholder = placeholder % self.get_expression_column(value) + placeholder = self.get_expression_column(value) else: placeholder = '%s(%%s)' % self.from_text return placeholder |
