From 80a16896f1ec27c388dca12df7fadd5a30e49530 Mon Sep 17 00:00:00 2001 From: Mark Struberg Date: Tue, 30 Mar 2021 21:44:43 +0200 Subject: [PATCH] disable MSSQL from LOB stream tests From the MS SQL Server documentation, it looks like JDBC4 drivers changed the behaviour. "The next call to a getter method implicitly closes the stream". Thus storing the InputStream in an entity will always result in a closed stream. Since JDBC4 all drivers should behave that way actually. And this is a sane way to prevent file handle leaks. --- .../org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java | 3 +-- pom.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java index 52cae827d..76534639a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java @@ -51,8 +51,7 @@ public abstract class AbstractLobTest extends SingleEMFTestCase { protected List> supportedDatabases = new ArrayList<> - (Arrays.asList(MySQLDictionary.class, OracleDictionary.class, SQLServerDictionary.class, - DB2Dictionary.class)); + (Arrays.asList(MySQLDictionary.class, OracleDictionary.class, DB2Dictionary.class)); @Override public void setUp() throws Exception { diff --git a/pom.xml b/pom.xml index c8d69f8f8..0de9a01e0 100644 --- a/pom.xml +++ b/pom.xml @@ -79,7 +79,7 @@ 5.1.47 2.2.0 42.2.5 - 7.4.1.jre8 + 9.2.1.jre8 4.7.0