Skip to content

Commit 90ccd8b

Browse files
committed
fix the issue michiya#158
1 parent 7908006 commit 90ccd8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql_server/pyodbc/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _cursor_iter(cursor, sentinel, col_count):
7878
Yields blocks of rows from a cursor and ensures the cursor is closed when
7979
done.
8080
"""
81-
if cursor.db.supports_mars:
81+
if not hasattr(cursor.db, 'supports_mars') or cursor.db.supports_mars:
8282
# same as the original Django implementation
8383
try:
8484
for rows in iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),

0 commit comments

Comments
 (0)