<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,7 +30,7 @@ class PostGISAdaptor(object):
     def getquoted(self):
         &quot;Returns a properly quoted string for use in PostgreSQL/PostGIS.&quot;
         # Want to use WKB, so wrap with psycopg2 Binary() to quote properly.
-        return &quot;%s(%s, %s)&quot; % (GEOM_FROM_WKB, Binary(self.wkb), self.srid or -1)
+        return &quot;%s(E%s, %s)&quot; % (GEOM_FROM_WKB, Binary(self.wkb), self.srid or -1)
 
     def prepare_database_save(self, unused):
         return self</diff>
      <filename>django/contrib/gis/db/backend/postgis/adaptor.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>93705919d1178ee844aa45cfce3d7f29e6555beb</id>
    </parent>
  </parents>
  <author>
    <name>jbronn</name>
    <email>jbronn@bcc190cf-cafb-0310-a4f2-bffc1f526a37</email>
  </author>
  <url>http://github.com/django/django/commit/fc77ce5e317eebe835ac3d088d5e9e0431566784</url>
  <id>fc77ce5e317eebe835ac3d088d5e9e0431566784</id>
  <committed-date>2009-11-07T16:51:42-08:00</committed-date>
  <authored-date>2009-11-07T16:51:42-08:00</authored-date>
  <message>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</message>
  <tree>26191682fd5f62411b418afb2607c16ab06be577</tree>
  <committer>
    <name>jbronn</name>
    <email>jbronn@bcc190cf-cafb-0310-a4f2-bffc1f526a37</email>
  </committer>
</commit>
