This is an automated email from the ASF dual-hosted git repository.
ivandasch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 4a956481215 IGNITE-20679 Fix
JdbcThinCacheToJdbcDataTypesCoverageTest#testSQLTimestampDataType for jdk11 and
later. (#11000)
4a956481215 is described below
commit 4a956481215eaedd5fa457a35853f3ef9a40578b
Author: Ivan Daschinskiy <[email protected]>
AuthorDate: Thu Oct 19 12:02:26 2023 +0300
IGNITE-20679 Fix
JdbcThinCacheToJdbcDataTypesCoverageTest#testSQLTimestampDataType for jdk11 and
later. (#11000)
---
.../jdbc/thin/JdbcThinCacheToJdbcDataTypesCoverageTest.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinCacheToJdbcDataTypesCoverageTest.java
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinCacheToJdbcDataTypesCoverageTest.java
index 02cbc0906bc..dc03826a939 100644
---
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinCacheToJdbcDataTypesCoverageTest.java
+++
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinCacheToJdbcDataTypesCoverageTest.java
@@ -32,6 +32,7 @@ import java.sql.Types;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
+import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -61,6 +62,7 @@ import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
+
import static org.apache.ignite.testframework.GridTestUtils.waitForCondition;
/**
@@ -356,9 +358,9 @@ public class JdbcThinCacheToJdbcDataTypesCoverageTest
extends GridCacheDataTypes
@Test
public void testSQLTimestampDataType() throws Exception {
checkBasicCacheOperations(
- new Dated(Timestamp.valueOf(LocalDateTime.now()), "yyyy-MM-dd
HH:mm:ss.SSS"),
- new Dated(Timestamp.valueOf(LocalDateTime.now()), "yyyy-MM-dd
HH:mm:ss.SSSS"),
- new Dated(Timestamp.valueOf(LocalDateTime.now()), "yyyy-MM-dd
HH:mm:ss.SSSSSS"));
+ new
Dated(Timestamp.valueOf(LocalDateTime.now().truncatedTo(ChronoUnit.MILLIS)),
"yyyy-MM-dd HH:mm:ss.SSS"),
+ new
Dated(Timestamp.valueOf(LocalDateTime.now().truncatedTo(ChronoUnit.MILLIS)),
"yyyy-MM-dd HH:mm:ss.SSSS"),
+ new
Dated(Timestamp.valueOf(LocalDateTime.now().truncatedTo(ChronoUnit.MILLIS)),
"yyyy-MM-dd HH:mm:ss.SSSSSS"));
}
/**