Skip to content

Conversation

@ptiurin
Copy link
Collaborator

@ptiurin ptiurin commented Nov 17, 2025

Starting from sqlalchemy==2.0.44 it uses _async_soft_close to safely close the cursor behind the scenes.
Since we create our own wrappers we don't have this method and fail on such call. Adding a stub for it to avoid failures.
For a long-term solution we should migrate to AsyncIODBAPICursor. This will be done as a separate PR since it requires more changes and testing.

Closes #113

@sonarqubecloud
Copy link

@ptiurin ptiurin marked this pull request as ready for review November 17, 2025 11:28
@ptiurin ptiurin requested a review from a team as a code owner November 17, 2025 11:28
Copy link

@goprean goprean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have tests for sql alchemy? Should we add a test as well?

@ptiurin
Copy link
Collaborator Author

ptiurin commented Nov 17, 2025

Do we have tests for sql alchemy? Should we add a test as well?

Will be added as a separate PR - there are some unrelated issues with the tests.

@ptiurin ptiurin merged commit cc4c93c into main Nov 17, 2025
11 checks passed
@ptiurin ptiurin deleted the fix-async-close branch November 17, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: async api no longer working (AsyncCursorWrapper requires _async_soft_close attribute)

4 participants