Skip to content

Conversation

@lidavidm
Copy link
Member

Fixes #2987

@lidavidm lidavidm marked this pull request as ready for review June 18, 2025 07:37
@github-actions github-actions bot added this to the ADBC Libraries 19 milestone Jun 18, 2025
@lidavidm
Copy link
Member Author

@eitsupi would you be able to take a look here? (No rush.)

self._conn.set_autocommit(False)
except _lib.NotSupportedError:
self._commit_supported = False
if not autocommit:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this condition checking is needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Fixed

@lidavidm lidavidm merged commit 1f3bf11 into apache:main Jun 19, 2025
59 of 62 checks passed
@lidavidm lidavidm deleted the gh-2987 branch June 19, 2025 01:03
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.

python/adbc_driver_manager: avoid redundant settings when autocommit defaults to True

2 participants