Skip to content

Incompatible with Sqlalchemy v2.0.44 using asynch #393

@nils-borrmann-tacto

Description

@nils-borrmann-tacto

On Sqlalchemy v2.0.44 I am running into the following error:

        if is_cursor and cursor_result.cursor is not None:
>           await cursor_result.cursor._async_soft_close()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           AttributeError: 'AsyncAdapt_asynch_cursor' object has no attribute '_async_soft_close'

This is caused by this commit in sqlalchemy: sqlalchemy/sqlalchemy@2e9902a

A fix could be to either add an empty method _async_soft_close() to AsyncAdapt_asynch_cursor; or to make it inherit from AsyncAdapt_dbapi_cursor and set _awaitable_cursor_close: bool = False.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions