diff --git a/std-bits/database/src/main/java/org/enso/database/JDBCUtils.java b/std-bits/database/src/main/java/org/enso/database/JDBCUtils.java index e96a642ac4dc..bb6232feaef8 100644 --- a/std-bits/database/src/main/java/org/enso/database/JDBCUtils.java +++ b/std-bits/database/src/main/java/org/enso/database/JDBCUtils.java @@ -32,12 +32,14 @@ public static void setZonedDateTime( } /** Sets a LocalTime in a PreparedStatement. */ - public static void setLocalTime(PreparedStatement stmt, int columnIndex, LocalTime localTime) throws SQLException { + public static void setLocalTime(PreparedStatement stmt, int columnIndex, LocalTime localTime) + throws SQLException { stmt.setObject(columnIndex, localTime, Types.TIME); } /** Sets a LocalDate in a PreparedStatement. */ - public static void setLocalDate(PreparedStatement stmt, int columnIndex, LocalDate localDate) throws SQLException { + public static void setLocalDate(PreparedStatement stmt, int columnIndex, LocalDate localDate) + throws SQLException { stmt.setObject(columnIndex, localDate, Types.DATE); } }