Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context Manager rollback/commit on aexit #178

Merged
merged 2 commits into from
Aug 4, 2018
Merged

Conversation

julianit
Copy link
Contributor

@julianit julianit commented Aug 1, 2018

According to pyodbc when Connection Manager is used the current transaction should be
rollback-ed on error, otherwise commit-ed if autocommit=False

from pyodbc import Error

@pytest.mark.asyncio
async def test_create_pool(loop, pool_maker, dsn):
Copy link
Member

Choose a reason for hiding this comment

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

Odd, why github shows diff here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it possible because of End Of Line difference between Windows and Linux?

Copy link
Member

Choose a reason for hiding this comment

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

ah, good point, can you please convert to unix end of line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the file but still the same issue. Do you have any other ideas?

@jettify
Copy link
Member

jettify commented Aug 2, 2018

Changes looks good! Need to investigate why github shows diff there

@jettify jettify merged commit 34baa87 into aio-libs:master Aug 4, 2018
@jettify
Copy link
Member

jettify commented Aug 4, 2018

looks good now! thanks!

@jettify
Copy link
Member

jettify commented Aug 4, 2018

New version deployed on PyPI https://pypi.org/project/aioodbc/0.3.2/

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.

2 participants