Commit 82b8b674 authored by Justin Bronn's avatar Justin Bronn
Browse files

Fixed #9437 -- Now close the connection after getting the PostGIS version...

Fixed #9437 -- Now close the connection after getting the PostGIS version during spatial backend initialization.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@12948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent faceca70
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -413,7 +413,8 @@ class PostGISOperations(DatabaseOperations, BaseSpatialOperations):
                # 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):