Ticket #12458: 12458.diff
File 12458.diff, 856 bytes (added by , 15 years ago) |
---|
-
django/contrib/gis/db/backends/postgis/operations.py
404 404 """ 405 405 cursor = self.connection._cursor() 406 406 try: 407 cursor.execute('SELECT %s()' % func) 408 row = cursor.fetchone() 409 except: 410 # Responsibility of callers to perform error handling. 411 raise 407 try: 408 cursor.execute('SELECT %s()' % func) 409 row = cursor.fetchone() 410 except: 411 # Responsibility of callers to perform error handling. 412 raise 412 413 finally: 413 414 cursor.close() 414 415 return row[0]