Skip to content

Commit

Permalink
(#29) Fixed issue due to removed exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
svettwer committed Feb 12, 2019
1 parent e89e103 commit 52cf0e5
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.sql.SQLException;
import java.util.Map;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -88,12 +87,8 @@ public DataSet executeQuery(final String sql) throws JdbcServerException {
log.info("EXECUTE QUERY: " + sql);
final DataSet dataSet = handleQuery(sql);

try {
if(log.isDebugEnabled()){
log.debug(String.format("RESULT SET with %s rows", dataSet.getRows().size()));
}
} catch (final SQLException e) {
throw new JdbcServerException("Failed to access dataSet", e);
if(log.isDebugEnabled()){
log.debug(String.format("RESULT SET with %s rows", dataSet.getRows().size()));
}

log.info("QUERY EXECUTION SUCCESSFUL");
Expand All @@ -105,12 +100,8 @@ public DataSet executeStatement(final String sql) throws JdbcServerException {
log.info("EXECUTE STATEMENT: " + sql);
final DataSet dataSet = handleExecute(sql);

try {
if(log.isDebugEnabled()){
log.debug(String.format("RESULT SET with %s rows", dataSet.getRows().size()));
}
} catch (final SQLException e) {
throw new JdbcServerException("Failed to access dataSet", e);
if(log.isDebugEnabled()){
log.debug(String.format("RESULT SET with %s rows", dataSet.getRows().size()));
}

log.info("STATEMENT EXECUTION SUCCESSFUL");
Expand Down

0 comments on commit 52cf0e5

Please sign in to comment.