Skip to content

Conversation

@1st1
Copy link
Member

@1st1 1st1 commented Mar 30, 2017

No description provided.

@1st1 1st1 requested a review from elprans March 30, 2017 00:48
'message': 'Resetting connection with an '
'active transaction {!r}'.format(self)
})
_reset_query.append('ROLLBACK;')
Copy link
Member

Choose a reason for hiding this comment

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

Managed transaction (self._top_xact) needs to be checked and put in order as well.

In detail: 1. If there is an active transaction, `Connection.reset()` will rollback it, along with issuing a warning. Both transactions started with `Connection.transaction()` and manually started with `Connection.execute('BEGIN;')` are supported. 2. It's no longer possible to start a transaction using `Connection.transaction()` API if the connection is in a manually started transaction. 3. New `assertLoopErrorHandlerCalled` helper method for asyncpg TestCase.
@1st1 1st1 merged commit 0d19d96 into master Mar 30, 2017
@1st1 1st1 deleted the rollback_reset branch March 30, 2017 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants