Author: jbronn
Date: 2009-03-31 11:02:44 -0500 (Tue, 31 Mar 2009)
New Revision: 10255
Modified:
django/branches/releases/1.0.X/django/contrib/gis/models.py
Log:
[1.0.X] Fixed #9437 -- Now close database connection within `get_srid_info`.
Thanks, mattxbart.
Backport of r10254 from trunk.
Modified: django/branches/releases/1.0.X/django/contrib/gis/models.py
===================================================================
--- django/branches/releases/1.0.X/django/contrib/gis/models.py 2009-03-31
15:49:25 UTC (rev 10254)
+++ django/branches/releases/1.0.X/django/contrib/gis/models.py 2009-03-31
16:02:44 UTC (rev 10255)
@@ -266,6 +266,7 @@
raise ValueError('Failed to find spatial reference entry in "%s"
corresponding to SRID=%s.' %
(SpatialRefSys._meta.db_table, srid))
srs_wkt = fetched[0]
+ connection.close()
# Getting metadata associated with the spatial reference system
identifier.
# Specifically, getting the unit information and spheroid information
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---