Skip to content

Commit 4ee7e46

Browse files
authored
Merge pull request #95 from ydb-platform/fix_adapted_inheritance
Fix sa 2.0.44 compatibility
2 parents e1067e5 + c3f555f commit 4ee7e46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ydb_sqlalchemy/sqlalchemy/dbapi_adapter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ def get_table_names(self):
6666
return await_only(self._connection.get_table_names())
6767

6868

69+
# TODO(vgvoleg): Migrate to AsyncAdapt_dbapi_cursor and AsyncAdapt_dbapi_connection
6970
class AdaptedAsyncCursor:
71+
_awaitable_cursor_close: bool = False
72+
7073
def __init__(self, cursor: AsyncCursor):
7174
self._cursor = cursor
7275

@@ -112,3 +115,6 @@ def setinputsizes(self, *args):
112115

113116
def setoutputsizes(self, *args):
114117
pass
118+
119+
async def _async_soft_close(self) -> None:
120+
pass

0 commit comments

Comments
 (0)