Skip to content

Commit

Permalink
fix the issue #158
Browse files Browse the repository at this point in the history
  • Loading branch information
michiya committed Apr 13, 2018
1 parent 7908006 commit 90ccd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql_server/pyodbc/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _cursor_iter(cursor, sentinel, col_count):
Yields blocks of rows from a cursor and ensures the cursor is closed when
done.
"""
if cursor.db.supports_mars:
if not hasattr(cursor.db, 'supports_mars') or cursor.db.supports_mars:
# same as the original Django implementation
try:
for rows in iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),
Expand Down

0 comments on commit 90ccd8b

Please sign in to comment.