Skip to content

Commit

Permalink
call connection.process_message when message is not a data row in fet…
Browse files Browse the repository at this point in the history
…chone()
  • Loading branch information
zer0n committed May 4, 2015
1 parent a04d4ec commit c573588
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vertica_python/vertica/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def fetchone(self):
row = self.row_formatter(self._message)
self._message = self.connection.read_message()
return row
else:
self.connection.process_message(self._message)

def iterate(self):
row = self.fetchone()
Expand Down

0 comments on commit c573588

Please sign in to comment.