Commit f6524d9c authored by Justin Bronn's avatar Justin Bronn
Browse files

[1.0.X] Fixed #9437 -- Now close database connection within `get_srid_info`. Thanks, mattxbart.

Backport of r10254 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 510a1667
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -266,6 +266,7 @@ if _srid_info:
            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