Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9437 -- Now close the connection after getting the PostGIS ver…

…sion during spatial backend initialization.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 82b8b67446f6737a22593876c8e77ff19532e2c5 1 parent faceca7
Justin Bronn jbronn authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/gis/db/backends/postgis/operations.py
3  django/contrib/gis/db/backends/postgis/operations.py
View
@@ -413,7 +413,8 @@ def _get_postgis_func(self, func):
# Responsibility of callers to perform error handling.
raise
finally:
- cursor.close()
+ # Close out the connection. See #9437.
+ self.connection.close()
return row[0]
def postgis_geos_version(self):
Please sign in to comment.
Something went wrong with that request. Please try again.