Skip to content

Commit 1ba8140

Browse files
committed
Merge branch 'azure-1.11' into azure-2.0
2 parents 1bce0ab + 90ccd8b commit 1ba8140

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
@@ -83,7 +83,7 @@ def _cursor_iter(cursor, sentinel, col_count, itersize):
8383
Yields blocks of rows from a cursor and ensures the cursor is closed when
8484
done.
8585
"""
86-
if cursor.db.supports_mars:
86+
if not hasattr(cursor.db, 'supports_mars') or cursor.db.supports_mars:
8787
# same as the original Django implementation
8888
try:
8989
for rows in iter((lambda: cursor.fetchmany(itersize)), sentinel):

0 commit comments

Comments
 (0)