Fixed #9437 -- Now close the connection after getting the PostGIS version during spatial backend initialization.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2010-04-11 18:59:03 +00:00
parent faceca7075
commit 82b8b67446
1 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,8 @@ class PostGISOperations(DatabaseOperations, BaseSpatialOperations):
# Responsibility of callers to perform error handling. # Responsibility of callers to perform error handling.
raise raise
finally: finally:
cursor.close() # Close out the connection. See #9437.
self.connection.close()
return row[0] return row[0]
def postgis_geos_version(self): def postgis_geos_version(self):