Ticket #12459: 12459.diff
File 12459.diff, 831 bytes (added by , 15 years ago) |
---|
-
django/contrib/gis/db/backends/spatialite/operations.py
211 211 """ 212 212 cursor = self.connection._cursor() 213 213 try: 214 cursor.execute('SELECT %s()' % func) 215 row = cursor.fetchone() 216 except: 217 # TODO: raise helpful exception here. 218 raise 214 try: 215 cursor.execute('SELECT %s()' % func) 216 row = cursor.fetchone() 217 except: 218 # TODO: raise helpful exception here. 219 raise 219 220 finally: 220 221 cursor.close() 221 222 return row[0]