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:
parent
faceca7075
commit
82b8b67446
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue