Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

removed TIME from list of timestamp types #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@

public class DefaultQueryDialect implements QueryDialect {
private static final Logger logger = LoggerFactory.getLogger(DefaultQueryDialect.class);
private static final Collection<SQLType> timeTypes = new HashSet<>(Arrays.asList(
private static final Collection<SQLType> timeStampTypes = new HashSet<>(Arrays.asList(
JDBCType.DATE,
JDBCType.TIMESTAMP,
JDBCType.TIME,
JDBCType.TIME_WITH_TIMEZONE,
JDBCType.TIMESTAMP_WITH_TIMEZONE
));

Expand Down Expand Up @@ -222,7 +220,7 @@ public boolean isAutoIncrementColumn(ResultSet columnsResultSet) throws SQLExcep

@Override
public boolean isTimeType(SQLType sqlType) throws SQLException {
return timeTypes.contains(getJdbcType(sqlType));
return timeStampTypes.contains(getJdbcType(sqlType));
}

@Override
Expand Down