Skip to content

Conversation

@cyang1
Copy link

@cyang1 cyang1 commented Oct 30, 2018

When statements and cursors are reset as a result of a connection
rollback, their associated statements are not cleared. This can lead to
spurious statement resets when referencing cursors created before the
rollback.

https://bugs.python.org/issue33376

When statements and cursors are reset as a result of a connection
rollback, their associated statements are not cleared. This can lead to
spurious statement resets when referencing cursors created before the
rollback.
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

elif counter == 1:
self.assertEqual(row[0], 1)
elif counter == 2:
self.assertEqual(row[0], 2)
Copy link

Choose a reason for hiding this comment

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

Why not self.assertEqual(row[0], counter)?

Copy link
Author

Choose a reason for hiding this comment

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

For consistency with the previous, very similar unit test. I don't have particularly strong opinions either way, but I generally value correctness > consistency > style.

I can change it if others feel strongly about this.

@remilapeyre
Copy link

remilapeyre commented Jun 9, 2020

Hi @cyang1, thanks for fixing this! Please address the remark from the code review :

@iritkatriel
Copy link
Member

https://bugs.python.org/issue33376 is closed. What is the status of this PR?

@erlend-aasland
Copy link
Contributor

https://bugs.python.org/issue33376 is closed. What is the status of this PR?

This change is obsolete. The "offending" code is no longer there. I say we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants