Skip to content

Commit

Permalink
test: verify execution of client side statements (#1473)
Browse files Browse the repository at this point in the history
Verifies that client-side statements can now also be executed using
the executeQuery and executeUpdate methods.

Replaces #1152
  • Loading branch information
olavloite authored Feb 12, 2024
1 parent 33b6fb5 commit c8b94e5
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ private long extractUpdateCountAndClose(com.google.cloud.spanner.ResultSet resul
"Result does not contain an update count", Code.FAILED_PRECONDITION);
}
return updateCount;
} catch (UnsupportedOperationException unsupportedOperationException) {
throw JdbcSqlExceptionFactory.of(
unsupportedOperationException.getMessage(),
Code.FAILED_PRECONDITION,
unsupportedOperationException);
} finally {
resultSet.close();
}
Expand Down
Loading

0 comments on commit c8b94e5

Please sign in to comment.