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

Added test case for checking the return code when an xid does not exist. #73

Merged
merged 3 commits into from
Aug 19, 2013

Conversation

whitingjr
Copy link
Contributor

This PR demonstrates how the current driver does not report back an error code during transaction recovery process. Calling recover on the same Xid should return an error indicating the xid was not found. Instead it is reporting a general error about the resource manager.

Regards,
Jeremy

xaRes.rollback(xid);
try
{
xaRes.rollback(xid);

Choose a reason for hiding this comment

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

hi jeremy, you need a fail("Rollback was successful") here

Copy link
Member

Choose a reason for hiding this comment

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

Jeremy,

Is this ready to be merged or do you have to add the above from Tom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Dave, Tom is right. I will add it now and push the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dave, the change recommended by Tom has been pushed.

davecramer pushed a commit that referenced this pull request Aug 19, 2013
Added test case for checking the return code when an xid does not exist.
@davecramer davecramer merged commit 9e07f61 into pgjdbc:master Aug 19, 2013
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.

3 participants