Skip to content

Commit

Permalink
Move comment above relevant code
Browse files Browse the repository at this point in the history
  • Loading branch information
hashhar committed Nov 2, 2021
1 parent 1e16b96 commit 28e8b71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ public List<JdbcColumnHandle> getColumns(ConnectorSession session, JdbcTableHand
Optional.empty());
Optional<ColumnMapping> columnMapping = toColumnMapping(session, connection, typeHandle);
log.debug("Mapping data type of '%s' column '%s': %s mapped to %s", schemaTableName, columnName, typeHandle, columnMapping);
// skip unsupported column types
boolean nullable = (resultSet.getInt("NULLABLE") != columnNoNulls);
// Note: some databases (e.g. SQL Server) do not return column remarks/comment here.
Optional<String> comment = Optional.ofNullable(emptyToNull(resultSet.getString("REMARKS")));
// skip unsupported column types
if (columnMapping.isPresent()) {
columns.add(JdbcColumnHandle.builder()
.setColumnName(columnName)
Expand Down

0 comments on commit 28e8b71

Please sign in to comment.