Ticket #9437: gis-connection-close-1.1.X.diff

File gis-connection-close-1.1.X.diff, 542 bytes (added by jbronn, 15 years ago)
  • django/contrib/gis/db/backend/postgis/management.py

     
    1212    cursor = connection.cursor()
    1313    cursor.execute('SELECT %s()' % func)
    1414    row = cursor.fetchone()
    15     cursor.close()
     15    # Close out the connection.  See #9437.
     16    connection.close()
    1617    return row[0]
    1718
    1819### PostGIS management functions ###
Back to Top