Skip to content

Commit

Permalink
Gracefully handle types that aren't supported by jdbc driver
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Jun 11, 2014
1 parent 9f2ef7d commit 8bf8533
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ private QueryResult executeQuery(String url, String username, String password, Q
List<List<Object>> results = limiter.callWithTimeout(getResultSetConverter(resultSet), timeout.toMillis() - stopwatch.elapsed(TimeUnit.MILLISECONDS), TimeUnit.MILLISECONDS, true);
return new QueryResult(State.SUCCESS, null, nanosSince(start), results);
}
catch (AssertionError e) {
if (e.getMessage().startsWith("unimplemented type:")) {
return new QueryResult(State.INVALID, null, null, ImmutableList.<List<Object>>of());
}
throw e;
}
catch (SQLException | VerifierException e) {
throw e;
}
Expand Down

0 comments on commit 8bf8533

Please sign in to comment.