
3 Oct
2013
3 Oct
'13
8:31 a.m.
Hi, I spotted a bug in the Python DBAPI driver when fetching results from an EXPLAIN.
import monetdb.sql db = monetdb.sql.connect(database="demo") cursor = db.cursor() cursor.execute("explain select count(*) from sys.tables") 31 cursor.fetchone() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "monetdb/sql/cursors.py", line 203, in fetchone result = self.__rows[self.rownumber - self.__offset] IndexError: list index out of range
I've logged a bug with patches for Python 2 and 3 here: http://bugs.monetdb.org/show_bug.cgi?id=3380 thanks, Pete.