Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #12111 -- now use PostgreSQL escape string syntax when quoting …

…WKB to prevent spurious warnings in database logs. Thanks, Matt Russell for ticket and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 562d5d8a28b16ab069d716b81085f5dce8934d9b 1 parent 7b63d3d
@jbronn jbronn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/db/backend/postgis/adaptor.py
View
2  django/contrib/gis/db/backend/postgis/adaptor.py
@@ -30,7 +30,7 @@ def __str__(self):
def getquoted(self):
"Returns a properly quoted string for use in PostgreSQL/PostGIS."
# Want to use WKB, so wrap with psycopg2 Binary() to quote properly.
- return "%s(%s, %s)" % (GEOM_FROM_WKB, Binary(self.wkb), self.srid or -1)
+ return "%s(E%s, %s)" % (GEOM_FROM_WKB, Binary(self.wkb), self.srid or -1)
def prepare_database_save(self, unused):
return self
Please sign in to comment.
Something went wrong with that request. Please try again.