Skip to content

Commit aa2f121

Browse files
committed
Fix cursor prefetch regression
1 parent fcb9fc8 commit aa2f121

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

asyncpg/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def _get_statement(self, query, timeout):
120120

121121
return state
122122

123-
def cursor(self, query, *args, prefetch=50, timeout=None):
123+
def cursor(self, query, *args, prefetch=None, timeout=None):
124124
return cursor.CursorInterface(self, query, None, args,
125125
prefetch, timeout)
126126

asyncpg/prepared_stmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_attributes(self):
4141
self.__check_open()
4242
return self._state._get_attributes()
4343

44-
def cursor(self, *args, prefetch=50,
44+
def cursor(self, *args, prefetch=None,
4545
timeout=None) -> cursor.CursorInterface:
4646
"""Return a *cursor interface* for the prepared statement.
4747

0 commit comments

Comments
 (0)