We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7908006 commit 90ccd8bCopy full SHA for 90ccd8b
sql_server/pyodbc/compiler.py
@@ -78,7 +78,7 @@ def _cursor_iter(cursor, sentinel, col_count):
78
Yields blocks of rows from a cursor and ensures the cursor is closed when
79
done.
80
"""
81
- if cursor.db.supports_mars:
+ if not hasattr(cursor.db, 'supports_mars') or cursor.db.supports_mars:
82
# same as the original Django implementation
83
try:
84
for rows in iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),
0 commit comments