Skip to content

Commit

Permalink
Fix async cursor fetch methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg committed Feb 19, 2025
1 parent 2eacadb commit bf1fbf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sqlalchemy >= 1.4.0, < 3.0.0
ydb >= 3.18.8
ydb-dbapi >= 0.1.7
ydb-dbapi >= 0.1.8
6 changes: 3 additions & 3 deletions ydb_sqlalchemy/sqlalchemy/dbapi_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ def rowcount(self):
return self._cursor.rowcount

def fetchone(self):
return await_only(self._cursor.fetchone())
return self._cursor.fetchone()

def fetchmany(self, size=None):
return await_only(self._cursor.fetchmany(size=size))
return self._cursor.fetchmany(size=size)

def fetchall(self):
return await_only(self._cursor.fetchall())
return self._cursor.fetchall()

def execute_scheme(self, sql, parameters=None):
return await_only(self._cursor.execute_scheme(sql, parameters))
Expand Down

0 comments on commit bf1fbf4

Please sign in to comment.