Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.1.X] Fixed #9437 -- Now close the connection after getting the Pos…

…tGIS version during spatial backend initialization.

Backport of r12948 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bf5d71f2a7ee0565390f2e657027e58197b16c67 1 parent b2ecfe8
@jbronn jbronn authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/gis/db/backend/postgis/management.py
View
3  django/contrib/gis/db/backend/postgis/management.py
@@ -12,7 +12,8 @@ def _get_postgis_func(func):
cursor = connection.cursor()
cursor.execute('SELECT %s()' % func)
row = cursor.fetchone()
- cursor.close()
+ # Close out the connection. See #9437.
+ connection.close()
return row[0]
### PostGIS management functions ###

0 comments on commit bf5d71f

Please sign in to comment.
Something went wrong with that request. Please try again.