Skip to content

Commit

Permalink
Reverted ResultSetImpl latest changes
Browse files Browse the repository at this point in the history
Signed-off-by: Margarit Hakobyan <[email protected]>
  • Loading branch information
margarit-h committed Jan 3, 2023
1 parent b1f8e06 commit b1de4b8
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/main/java/org/opensearch/jdbc/ResultSetImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1078,29 +1078,19 @@ public Time getTime(int columnIndex, Calendar cal) throws SQLException {
log.debug(() -> logEntry("getTime (%d, %s)", columnIndex,
cal == null ? "null" : "Calendar TZ= " + cal.getTimeZone()));
checkCursorOperationPossible();
log.debug(() -> {
try {
return logExit("getTime", getTimeX(columnIndex, cal));
} catch (SQLException e) {
throw new RuntimeException(e);
}
});
return getTimeX(columnIndex, cal);
Time value = getTimeX(columnIndex, cal);
log.debug(() -> logExit("getTime", value));
return value;
}

@Override
public Time getTime(String columnLabel, Calendar cal) throws SQLException {
log.debug(() -> logEntry("getTime (%s, %s)", columnLabel,
cal == null ? "null" : "Calendar TZ= " + cal.getTimeZone()));
checkCursorOperationPossible();
log.debug(() -> {
try {
return logExit("getTime", getTimeX(getColumnIndex(columnLabel), cal));
} catch (SQLException e) {
throw new RuntimeException(e);
}
});
return getTimeX(getColumnIndex(columnLabel), cal);
Time value = getTimeX(getColumnIndex(columnLabel), cal);
log.debug(() -> logExit("getTime", value));
return value;
}

@Override
Expand Down

0 comments on commit b1de4b8

Please sign in to comment.