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

[1.1.X] Fixed #9437 -- Now close the connection after getting the PostGIS...

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

Backport of r12948 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent b2ecfe84
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@ def _get_postgis_func(func):
    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 ###