Skip to content

Conversation

@olavloite
Copy link
Collaborator

Refactor the execute methods a bit so they all share the same do-with-timeout logic.

Refactor the execute methods a bit so they all share the same
do-with-timeout logic.
@olavloite olavloite requested a review from rajatbhatta August 15, 2023 11:52
@olavloite olavloite requested a review from a team as a code owner August 15, 2023 11:52
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Aug 15, 2023
assertEquals(1, connection.prepareStatement(DML).executeUpdate());
// TODO: Enable the next statement once PreparedStatement supports executing DDL through the
// executeUpdate() method.
// executeUpdate() method.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check if these blank spaces were added unintentionally..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, those are intentional. They make sure that the second line of the comment is part of the TODO, and is highlighted as such in the IDE.

@olavloite olavloite merged commit b66da5e into test-execute-methods Aug 25, 2023
@olavloite olavloite deleted the cleanup-do-with-timeout branch August 25, 2023 12:04
olavloite added a commit that referenced this pull request Sep 15, 2023
…atement and PreparedStatement (#1321)

* test: add tests for all execute methods of Statement and PreparedStatement

Adds tests for all the different variations of the execute method on
Statement and PreparedStatement. This will allow us to make internal
changes to the way these methods are handled, while keeping control over
any behavior changes that it might introduce.

* chore: share do-with-timeout code (#1324)

Refactor the execute methods a bit so they all share the same
do-with-timeout logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants