private <T> T readSilent(ResultSet rs, SqlSupplier<T> supplier, boolean fullWarning) { try { final T result = supplier.get(); if (rs.wasNull()) { return null; } else { return result; } } catch (SQLException sqle) { // ignore, just return null if (fullWarning) { LOGGER.warn(sqle, "Unable to read column metadata: " + sqle.getMessage()); } else { LOGGER.info("Metadata not supported: " + sqle.getMessage()); } } return null; }
try (final ResultSet rsChild = resultSetSupplier.get()) { if (SHOW_METADATA) { final ResultSetMetaData rsmd = rsChild.getMetaData();
try (final ResultSet rsChild = resultSetSupplier.get()) {
private <T> T readSilent(ResultSet rs, SqlSupplier<T> supplier, boolean fullWarning) { try { final T result = supplier.get(); if (rs.wasNull()) { return null; } else { return result; } } catch (SQLException sqle) { // ignore, just return null if (fullWarning) { LOGGER.warn(sqle, "Unable to read column metadata: " + sqle.getMessage()); } else { LOGGER.info("Metadata not supported: " + sqle.getMessage()); } } return null; }
try (final ResultSet rsChild = resultSetSupplier.get()) {
try (final ResultSet rsChild = resultSetSupplier.get()) { if (SHOW_METADATA) { final ResultSetMetaData rsmd = rsChild.getMetaData();