openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [openjpa] branch master updated: disable MSSQL from LOB stream tests
Date Tue, 30 Mar 2021 19:48:16 GMT
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git


The following commit(s) were added to refs/heads/master by this push:
     new 80a1689  disable MSSQL from LOB stream tests
80a1689 is described below

commit 80a16896f1ec27c388dca12df7fadd5a30e49530
Author: Mark Struberg <struberg@apache.org>
AuthorDate: Tue Mar 30 21:44:43 2021 +0200

    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.
---
 .../test/java/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 52cae82..7653463 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<Class<?>> 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 c8d69f8..0de9a01 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
         <mysql.connector.version>5.1.47</mysql.connector.version>
         <mariadb.connector.version>2.2.0</mariadb.connector.version>
         <postgresql.connector.version>42.2.5</postgresql.connector.version>
-        <mssql.connector.version>7.4.1.jre8</mssql.connector.version>
+        <mssql.connector.version>9.2.1.jre8</mssql.connector.version>
 
         <!-- other common versions -->
         <kubernetes-client.version>4.7.0</kubernetes-client.version>

Mime
View raw message