mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -413,7 +413,8 @@ class PostGISOperations(DatabaseOperations, BaseSpatialOperations):
|
|||
# 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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue