Author: jbronn
Date: 2010-04-11 14:01:02 -0500 (Sun, 11 Apr 2010)
New Revision: 12949
Modified:
django/branches/releases/1.1.X/django/contrib/gis/db/backend/postgis/management.py
Log:
[1.1.X] Fixed #9437 -- Now close the connection after getting the PostGIS
version during spatial backend initialization.
Backport of r12948 from trunk.
Modified:
django/branches/releases/1.1.X/django/contrib/gis/db/backend/postgis/management.py
===================================================================
---
django/branches/releases/1.1.X/django/contrib/gis/db/backend/postgis/management.py
2010-04-11 18:59:03 UTC (rev 12948)
+++
django/branches/releases/1.1.X/django/contrib/gis/db/backend/postgis/management.py
2010-04-11 19:01:02 UTC (rev 12949)
@@ -12,7 +12,8 @@
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 ###
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.