Author: jbronn
Date: 2010-04-11 13:59:03 -0500 (Sun, 11 Apr 2010)
New Revision: 12948

Modified:
   django/trunk/django/contrib/gis/db/backends/postgis/operations.py
Log:
Fixed #9437 -- Now close the connection after getting the PostGIS version 
during spatial backend initialization.


Modified: django/trunk/django/contrib/gis/db/backends/postgis/operations.py
===================================================================
--- django/trunk/django/contrib/gis/db/backends/postgis/operations.py   
2010-04-11 08:35:04 UTC (rev 12947)
+++ django/trunk/django/contrib/gis/db/backends/postgis/operations.py   
2010-04-11 18:59:03 UTC (rev 12948)
@@ -413,7 +413,8 @@
                 # 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):

-- 
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.

Reply via email to