Skip to content

Commit

Permalink
[CALCITE-5409] Implement BatchNestedLoopJoin for JDBC. Fixes Prepared…
Browse files Browse the repository at this point in the history
…Statement::setNull
  • Loading branch information
kramerul committed Dec 8, 2023
1 parent fab27c6 commit 849a65a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ public static PreparedStatementEnricher createEnricher(Integer[] indexes,
private static void setDynamicParam(PreparedStatement preparedStatement,
int i, @Nullable Object value) throws SQLException {
if (value == null) {
// TODO: use proper type instead of ANY
preparedStatement.setObject(i, null, SqlType.ANY.id);
preparedStatement.setNull(i, Types.NULL);
} else if (value instanceof Timestamp) {
preparedStatement.setTimestamp(i, (Timestamp) value);
} else if (value instanceof Time) {
Expand Down

0 comments on commit 849a65a

Please sign in to comment.