Ticket #12111: django-contrib-gis-db-backend-postgis-adaptor.patch
File django-contrib-gis-db-backend-postgis-adaptor.patch, 610 bytes (added by , 15 years ago) |
---|
-
adaptor.py
old new 30 30 def getquoted(self): 31 31 "Returns a properly quoted string for use in PostgreSQL/PostGIS." 32 32 # Want to use WKB, so wrap with psycopg2 Binary() to quote properly. 33 return "%s( %s, %s)" % (GEOM_FROM_WKB, Binary(self.wkb), self.srid or -1)33 return "%s(E%s, %s)" % (GEOM_FROM_WKB, Binary(self.wkb), self.srid or -1) 34 34 35 35 def prepare_database_save(self, unused): 36 36 return self