Dominique Leuenberger 2018-11-10 15:47:29 +00:00 committed by Git OBS Bridge
commit 9216b0cb64
5 changed files with 142 additions and 63 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:17e51ef111718ce5178d3dd16d3b8f8877c74be83108487f1abedcb142d961b0
size 1013108

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5435d4d4b86360ab71d3fceb320a714135278cc3348da8c19882de21bd5ad25e
size 1025916

View File

@ -23,11 +23,13 @@ Subject: [PATCH] Java 8 compatibility
.../jdbc2/optional/SuspendableXAConnection.java | 8 + .../jdbc2/optional/SuspendableXAConnection.java | 8 +
17 files changed, 822 insertions(+), 2 deletions(-) 17 files changed, 822 insertions(+), 2 deletions(-)
--- a/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java Index: mysql-connector-java-5.1.47/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
+++ b/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java ===================================================================
@@ -3065,4 +3065,36 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
+++ mysql-connector-java-5.1.47/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
public void decachePreparedStatement(ServerPreparedStatement pstmt) throws SQLException { @@ -3069,4 +3069,36 @@ public class FabricMySQLConnectionProxy
public boolean isServerTruncatesFracSecs() {
return getActiveMySQLConnection().isServerTruncatesFracSecs();
} }
+ +
+ public java.sql.Clob createClob() throws SQLException { + public java.sql.Clob createClob() throws SQLException {
@ -62,9 +64,11 @@ Subject: [PATCH] Java 8 compatibility
+ throw new UnsupportedOperationException(); + throw new UnsupportedOperationException();
+ } + }
} }
--- a/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java Index: mysql-connector-java-5.1.47/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java
+++ b/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java ===================================================================
@@ -103,7 +103,7 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java
+++ mysql-connector-java-5.1.47/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java
@@ -103,7 +103,7 @@ public class FabricMySQLDriver extends N
return super.parseURL(url.replaceAll("fabric:", ""), defaults); return super.parseURL(url.replaceAll("fabric:", ""), defaults);
} }
@ -74,9 +78,11 @@ Subject: [PATCH] Java 8 compatibility
+ throw new java.sql.SQLFeatureNotSupportedException("no logging"); + throw new java.sql.SQLFeatureNotSupportedException("no logging");
} }
} }
--- a/src/com/mysql/jdbc/CallableStatement.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/CallableStatement.java
+++ b/src/com/mysql/jdbc/CallableStatement.java ===================================================================
@@ -2396,6 +2396,90 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/CallableStatement.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/CallableStatement.java
@@ -2396,6 +2396,90 @@ public class CallableStatement extends P
} }
} }
@ -167,9 +173,11 @@ Subject: [PATCH] Java 8 compatibility
/** /**
* JDBC 4.2 * JDBC 4.2
*/ */
--- a/src/com/mysql/jdbc/ConnectionImpl.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/ConnectionImpl.java
+++ b/src/com/mysql/jdbc/ConnectionImpl.java ===================================================================
@@ -5507,4 +5507,56 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/ConnectionImpl.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/ConnectionImpl.java
@@ -5544,4 +5544,56 @@ public class ConnectionImpl extends Conn
} }
} }
} }
@ -226,9 +234,11 @@ Subject: [PATCH] Java 8 compatibility
+ throw new UnsupportedOperationException(); + throw new UnsupportedOperationException();
+ } + }
} }
--- a/src/com/mysql/jdbc/DatabaseMetaData.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/DatabaseMetaData.java
+++ b/src/com/mysql/jdbc/DatabaseMetaData.java ===================================================================
@@ -7878,6 +7878,22 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/DatabaseMetaData.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/DatabaseMetaData.java
@@ -7878,6 +7878,22 @@ public class DatabaseMetaData implements
return pStmt; return pStmt;
} }
@ -251,11 +261,13 @@ Subject: [PATCH] Java 8 compatibility
/** /**
* JDBC-4.1 * JDBC-4.1
* *
--- a/src/com/mysql/jdbc/MultiHostMySQLConnection.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/MultiHostMySQLConnection.java
+++ b/src/com/mysql/jdbc/MultiHostMySQLConnection.java ===================================================================
@@ -2482,4 +2482,56 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/MultiHostMySQLConnection.java
public boolean isUseSSLExplicit() { +++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/MultiHostMySQLConnection.java
return getActiveMySQLConnection().isUseSSLExplicit(); @@ -2502,4 +2502,56 @@ public class MultiHostMySQLConnection im
public boolean isServerTruncatesFracSecs() {
return getActiveMySQLConnection().isServerTruncatesFracSecs();
} }
+ +
+ public java.sql.Clob createClob() throws SQLException { + public java.sql.Clob createClob() throws SQLException {
@ -310,9 +322,11 @@ Subject: [PATCH] Java 8 compatibility
+ throw new UnsupportedOperationException(); + throw new UnsupportedOperationException();
+ } + }
} }
--- a/src/com/mysql/jdbc/NonRegisteringDriver.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/NonRegisteringDriver.java
+++ b/src/com/mysql/jdbc/NonRegisteringDriver.java ===================================================================
@@ -908,4 +908,9 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/NonRegisteringDriver.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/NonRegisteringDriver.java
@@ -908,4 +908,9 @@ public class NonRegisteringDriver implem
} }
} }
} }
@ -322,9 +336,11 @@ Subject: [PATCH] Java 8 compatibility
+ throw new java.sql.SQLFeatureNotSupportedException(); + throw new java.sql.SQLFeatureNotSupportedException();
+ } + }
} }
--- a/src/com/mysql/jdbc/PreparedStatement.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/PreparedStatement.java
+++ b/src/com/mysql/jdbc/PreparedStatement.java ===================================================================
@@ -5096,6 +5096,18 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/PreparedStatement.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/PreparedStatement.java
@@ -5150,6 +5150,18 @@ public class PreparedStatement extends c
&& StringUtils.indexOfIgnoreCase(statementStartPos, sql, "SELECT", "\"'`", "\"'`", StringUtils.SEARCH_MODE__MRK_COM_WS) == -1; && StringUtils.indexOfIgnoreCase(statementStartPos, sql, "SELECT", "\"'`", "\"'`", StringUtils.SEARCH_MODE__MRK_COM_WS) == -1;
} }
@ -343,9 +359,11 @@ Subject: [PATCH] Java 8 compatibility
/** /**
* JDBC 4.2 * JDBC 4.2
* Same as PreparedStatement.executeUpdate() but returns long instead of int. * Same as PreparedStatement.executeUpdate() but returns long instead of int.
--- a/src/com/mysql/jdbc/ResultSetImpl.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/ResultSetImpl.java
+++ b/src/com/mysql/jdbc/ResultSetImpl.java ===================================================================
@@ -7890,4 +7890,200 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/ResultSetImpl.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/ResultSetImpl.java
@@ -7894,4 +7894,200 @@ public class ResultSetImpl implements Re
protected ExceptionInterceptor getExceptionInterceptor() { protected ExceptionInterceptor getExceptionInterceptor() {
return this.exceptionInterceptor; return this.exceptionInterceptor;
} }
@ -546,9 +564,11 @@ Subject: [PATCH] Java 8 compatibility
+ throw new UnsupportedOperationException(); + throw new UnsupportedOperationException();
+ } + }
} }
--- a/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
+++ b/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java ===================================================================
@@ -1498,6 +1498,142 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
@@ -1498,6 +1498,142 @@ public class CallableStatementWrapper ex
return null; return null;
} }
@ -691,9 +711,11 @@ Subject: [PATCH] Java 8 compatibility
// //
// public Reader getCharacterStream(int parameterIndex) throws SQLException { // public Reader getCharacterStream(int parameterIndex) throws SQLException {
// try { // try {
--- a/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
+++ b/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java ===================================================================
@@ -2885,4 +2885,56 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
@@ -2901,4 +2901,56 @@ public class ConnectionWrapper extends W
public boolean isUseSSLExplicit() { public boolean isUseSSLExplicit() {
return this.mc.isUseSSLExplicit(); return this.mc.isUseSSLExplicit();
} }
@ -750,13 +772,14 @@ Subject: [PATCH] Java 8 compatibility
+ throw new UnsupportedOperationException(); + throw new UnsupportedOperationException();
+ } + }
} }
--- a/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
+++ b/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java ===================================================================
@@ -435,4 +435,16 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
// public <T> T unwrap(Class<T> iface) throws SQLException { +++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
@@ -436,6 +436,18 @@ public class MysqlDataSource extends Con
// throw SQLError.createSQLFeatureNotSupportedException(); // throw SQLError.createSQLFeatureNotSupportedException();
// } // }
+
+ public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException { + public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException {
+ throw new java.sql.SQLFeatureNotSupportedException(); + throw new java.sql.SQLFeatureNotSupportedException();
+ } + }
@ -768,10 +791,15 @@ Subject: [PATCH] Java 8 compatibility
+ public boolean isWrapperFor(Class<?> iface) throws SQLException { + public boolean isWrapperFor(Class<?> iface) throws SQLException {
+ throw new UnsupportedOperationException(); + throw new UnsupportedOperationException();
+ } + }
} +
--- a/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java @Override
+++ b/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java public Properties exposeAsProperties(Properties props) throws SQLException {
@@ -33,6 +33,7 @@ return exposeAsProperties(props, true);
Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
===================================================================
--- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
@@ -33,6 +33,7 @@ import java.util.Map;
import javax.sql.ConnectionEvent; import javax.sql.ConnectionEvent;
import javax.sql.ConnectionEventListener; import javax.sql.ConnectionEventListener;
import javax.sql.PooledConnection; import javax.sql.PooledConnection;
@ -779,7 +807,7 @@ Subject: [PATCH] Java 8 compatibility
import com.mysql.jdbc.ExceptionInterceptor; import com.mysql.jdbc.ExceptionInterceptor;
import com.mysql.jdbc.SQLError; import com.mysql.jdbc.SQLError;
@@ -230,4 +231,14 @@ @@ -230,4 +231,14 @@ public class MysqlPooledConnection imple
protected ExceptionInterceptor getExceptionInterceptor() { protected ExceptionInterceptor getExceptionInterceptor() {
return this.exceptionInterceptor; return this.exceptionInterceptor;
} }
@ -795,9 +823,11 @@ Subject: [PATCH] Java 8 compatibility
+ } + }
} }
\ No newline at end of file \ No newline at end of file
--- a/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
+++ b/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java ===================================================================
@@ -567,6 +567,78 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
@@ -567,6 +567,78 @@ public class PreparedStatementWrapper ex
return buf.toString(); return buf.toString();
} }
@ -876,9 +906,11 @@ Subject: [PATCH] Java 8 compatibility
// //
// public void setAsciiStream(int parameterIndex, InputStream x) // public void setAsciiStream(int parameterIndex, InputStream x)
// throws SQLException { // throws SQLException {
--- a/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
+++ b/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java ===================================================================
@@ -581,6 +581,34 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
@@ -581,6 +581,34 @@ public class StatementWrapper extends Wr
} }
} }
@ -913,9 +945,11 @@ Subject: [PATCH] Java 8 compatibility
/** /**
* JDBC 4.2 * JDBC 4.2
* Same as {@link #executeBatch()} but returns long[] instead of int[]. * Same as {@link #executeBatch()} but returns long[] instead of int[].
--- a/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java
+++ b/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java ===================================================================
@@ -199,4 +199,12 @@ --- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java
+++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java
@@ -199,4 +199,12 @@ public class SuspendableXAConnection ext
this.currentXAConnection.close(); this.currentXAConnection.close();
} }
} }

View File

@ -1,3 +1,48 @@
-------------------------------------------------------------------
Mon Nov 5 15:22:11 UTC 2018 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Updated to 5.1.47
- Bug#28449601, MASTER : UNITTEST FOR BUG#22305979 (TESTBUG22305979) STILL FAILS ON QA SETUP.
- Bug#81063 (23098159), w/ rewriteBatchedStatements, when 2 tables involved, the rewriting not correct.
- Bug#84813 (25501750), rewriteBatchedStatements fails in INSERT.
- Fix for Bug#81196 (23227334), CONNECTOR/J NOT FOLLOWING DATABASE CHARACTER SET.
- Bug#72609 (18749544), SETDATE() NOT USING A PROLEPTIC GREGORIAN CALENDAR.
- Bug#87534 (26730196), UNION ALL query fails when useServerPrepStmts=true
on database connection. Test case only. Base bug fixed in MySQL 5.7.22.
- Bug#89948 (27658489), Batched statements are not committed for useLocalTransactionState=true.
- BUG#80532 (22847443), ENCODING OF RESULTSET.UPDATEROW IS BROKEN FOR NON ASCII CHARCTERS.
- BUG#22305979, WRONG RECORD UPDATED IF SENDFRACTIONALSECONDS=FALSE AND SMT IS SCROLLABLE.
- BUG#90024 (27677574), SOME TESTS FAILED AGAINST MYSQL 8.0.5 BECAUSE OF DEPRECATED FEATURES REMOVAL.
- Updated to 5.1.46
- WL#11629, Change caching_sha2_password padding.
- Bug#86741 (26314325), Multi-Host connection with autocommit=0 getAutoCommit maybe wrong.
- Bug#27231383, PROVIDE MAVEN-FRIENDLY COMMERCIAL PACKAGES WITHOUT "-BIN".
- Bug#26819691, SETTING PACKETDEBUGBUFFERSIZE=0 RESULTS IN CONNECTION FAILURE.
- WL#11200, Add caching_sha2_password support.
- Bug#88227 (27029657), Connector/J 5.1.44 cannot be used against MySQL 5.7.20 without warnings.
- Bug#27374581, CONNECTION FAILS WHEN GPL SERVER STARTED WITH TLS-VERSION=TLSV1.2.
- Bug#79612 (22362474), CONNECTION ATTRIBUTES LOST WHEN CONNECTING WITHOUT DEFAULT DATABASE.
- Updated to 5.1.45
- Bug#27131768, NULL POINTER EXCEPTION IN CONNECTION.
- Bug#88232 (27047676), c/J does not rollback transaction when autoReconnect=true.
- Bug#88242 (27040063), autoReconnect and socketTimeout JDBC option makes wrong order of client packet.
- Bug#88021 (26939943), High GC pressure when driver configured with serversideprepared statements.
- Bug#26724085, CHARSET MAPPING TO BE UPDATED FOR MYSQL 8.0.3.
- Bug#26794652, TEST FAILING DUE TO BINARY LOGGING ENABLED BY DEFAULT IN MYSQL 8.0.3.
- Bug#26794602, TESTS FAILING DUE TO CHANGE IN INFORMATION_SCHEMA.INNODB_SYS_* NAMING.
- Bug#87704 (26771560), THE STREAM GETS THE RESULT SET ?THE DRIVER SIDE GET WRONG ABOUT GETLONG().
- Updated to 5.1.44
- Bug#87429 (26633984), repeated close of ServerPreparedStatement causes memory leak.
- Bug#87379 (26646676), Perform actual TLS capabilities check when restricting TLSv1.2.
- Bug#85601 (25777822), Unit notation is missing in the description of the property involved in the time.
- Bug#87153 (26501245), INCORRECT RESULT OF DBMD.GETVERSIONCOLUMNS() AGAINST MYSQL 8.0.2+.
- Bug#26440544, CONNECTOR/J SHOULD NOT USE TX_{READ_ONLY,ISOLATION} WHICH IS PLANNED FOR REMOVAL.
- Rebased patch mysql-connector-java-jdbc-4.1.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 6 08:13:05 UTC 2017 - fstrba@suse.com Fri Oct 6 08:13:05 UTC 2017 - fstrba@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package mysql-connector-java # spec file for package mysql-connector-java
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,15 +12,15 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: mysql-connector-java Name: mysql-connector-java
Version: 5.1.43 Version: 5.1.47
Release: 0 Release: 0
Summary: Official JDBC Driver for MySQL Summary: Official JDBC Driver for MySQL
License: GPL-2.0+ License: GPL-2.0-or-later
Group: Development/Libraries/Java Group: Development/Libraries/Java
Url: http://dev.mysql.com/downloads/connector/j/ Url: http://dev.mysql.com/downloads/connector/j/
Source0: %{name}-%{version}-suse.tar.xz Source0: %{name}-%{version}-suse.tar.xz