Commit bfd9036b authored by Mark Heppner's avatar Mark Heppner

Check if a frame is None or empty to allow for an error to be raised

parent 46b809ad
......@@ -256,7 +256,7 @@ class Cursor(object):
return tmp_row
def fetchone(self):
if self._frame is None:
if self._frame is None or self._frame.SerializeToString() == '':
raise ProgrammingError('no select statement was executed')
if self._pos is None:
return None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment