Ticket #9437: gis-connection-close-1.1.X.diff
File gis-connection-close-1.1.X.diff, 542 bytes (added by , 15 years ago) |
---|
-
django/contrib/gis/db/backend/postgis/management.py
12 12 cursor = connection.cursor() 13 13 cursor.execute('SELECT %s()' % func) 14 14 row = cursor.fetchone() 15 cursor.close() 15 # Close out the connection. See #9437. 16 connection.close() 16 17 return row[0] 17 18 18 19 ### PostGIS management functions ###