From 0f8ead152f8d0bbfaddba09634b48d5fd39e802e Mon Sep 17 00:00:00 2001 From: alexradzin Date: Tue, 30 Apr 2024 21:07:28 +0300 Subject: [PATCH] fixed shouldSetDateWithNullCalendar --- .../preparedstatement/FireboltPreparedStatementTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/firebolt/jdbc/statement/preparedstatement/FireboltPreparedStatementTest.java b/src/test/java/com/firebolt/jdbc/statement/preparedstatement/FireboltPreparedStatementTest.java index eb68a48eb..0af897fb1 100644 --- a/src/test/java/com/firebolt/jdbc/statement/preparedstatement/FireboltPreparedStatementTest.java +++ b/src/test/java/com/firebolt/jdbc/statement/preparedstatement/FireboltPreparedStatementTest.java @@ -438,10 +438,11 @@ void shouldSetDateWithCalendar() throws SQLException, ParseException { } @Test + @DefaultTimeZone("Europe/London") void shouldSetDateWithNullCalendar() throws SQLException, ParseException { statement = createStatementWithSql("INSERT INTO cars(release_date) VALUES (?)"); - statement.setDate(1, new Date(1564527600000L)); + statement.setDate(1, new Date(1564527600000L), null); statement.execute(); verify(fireboltStatementService).execute(queryInfoWrapperArgumentCaptor.capture(), eq(properties), anyBoolean(), any());