Skip to content

Commit

Permalink
Fixed #9437 -- Now close the connection after getting the PostGIS ver…
Browse files Browse the repository at this point in the history
…sion during spatial backend initialization.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jbronn committed Apr 11, 2010
1 parent faceca7 commit 82b8b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/contrib/gis/db/backends/postgis/operations.py
Expand Up @@ -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):
Expand Down

0 comments on commit 82b8b67

Please sign in to comment.