diff --git a/mysql-connector-java-5.1.43-suse.tar.xz b/mysql-connector-java-5.1.43-suse.tar.xz deleted file mode 100644 index 507e474..0000000 --- a/mysql-connector-java-5.1.43-suse.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:17e51ef111718ce5178d3dd16d3b8f8877c74be83108487f1abedcb142d961b0 -size 1013108 diff --git a/mysql-connector-java-5.1.47-suse.tar.xz b/mysql-connector-java-5.1.47-suse.tar.xz new file mode 100644 index 0000000..a0f869c --- /dev/null +++ b/mysql-connector-java-5.1.47-suse.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5435d4d4b86360ab71d3fceb320a714135278cc3348da8c19882de21bd5ad25e +size 1025916 diff --git a/mysql-connector-java-jdbc-4.1.patch b/mysql-connector-java-jdbc-4.1.patch index 8a53df9..dd77130 100644 --- a/mysql-connector-java-jdbc-4.1.patch +++ b/mysql-connector-java-jdbc-4.1.patch @@ -23,11 +23,13 @@ Subject: [PATCH] Java 8 compatibility .../jdbc2/optional/SuspendableXAConnection.java | 8 + 17 files changed, 822 insertions(+), 2 deletions(-) ---- a/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java -+++ b/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java -@@ -3065,4 +3065,36 @@ - - public void decachePreparedStatement(ServerPreparedStatement pstmt) throws SQLException { +Index: mysql-connector-java-5.1.47/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java +=================================================================== +--- 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 +@@ -3069,4 +3069,36 @@ public class FabricMySQLConnectionProxy + public boolean isServerTruncatesFracSecs() { + return getActiveMySQLConnection().isServerTruncatesFracSecs(); } + + public java.sql.Clob createClob() throws SQLException { @@ -62,9 +64,11 @@ Subject: [PATCH] Java 8 compatibility + throw new UnsupportedOperationException(); + } } ---- a/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java -+++ b/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java -@@ -103,7 +103,7 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java +=================================================================== +--- 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); } @@ -74,9 +78,11 @@ Subject: [PATCH] Java 8 compatibility + throw new java.sql.SQLFeatureNotSupportedException("no logging"); } } ---- a/src/com/mysql/jdbc/CallableStatement.java -+++ b/src/com/mysql/jdbc/CallableStatement.java -@@ -2396,6 +2396,90 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/CallableStatement.java +=================================================================== +--- 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 */ ---- a/src/com/mysql/jdbc/ConnectionImpl.java -+++ b/src/com/mysql/jdbc/ConnectionImpl.java -@@ -5507,4 +5507,56 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/ConnectionImpl.java +=================================================================== +--- 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(); + } } ---- a/src/com/mysql/jdbc/DatabaseMetaData.java -+++ b/src/com/mysql/jdbc/DatabaseMetaData.java -@@ -7878,6 +7878,22 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/DatabaseMetaData.java +=================================================================== +--- 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; } @@ -251,11 +261,13 @@ Subject: [PATCH] Java 8 compatibility /** * JDBC-4.1 * ---- a/src/com/mysql/jdbc/MultiHostMySQLConnection.java -+++ b/src/com/mysql/jdbc/MultiHostMySQLConnection.java -@@ -2482,4 +2482,56 @@ - public boolean isUseSSLExplicit() { - return getActiveMySQLConnection().isUseSSLExplicit(); +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/MultiHostMySQLConnection.java +=================================================================== +--- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/MultiHostMySQLConnection.java ++++ mysql-connector-java-5.1.47/src/com/mysql/jdbc/MultiHostMySQLConnection.java +@@ -2502,4 +2502,56 @@ public class MultiHostMySQLConnection im + public boolean isServerTruncatesFracSecs() { + return getActiveMySQLConnection().isServerTruncatesFracSecs(); } + + public java.sql.Clob createClob() throws SQLException { @@ -310,9 +322,11 @@ Subject: [PATCH] Java 8 compatibility + throw new UnsupportedOperationException(); + } } ---- a/src/com/mysql/jdbc/NonRegisteringDriver.java -+++ b/src/com/mysql/jdbc/NonRegisteringDriver.java -@@ -908,4 +908,9 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/NonRegisteringDriver.java +=================================================================== +--- 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(); + } } ---- a/src/com/mysql/jdbc/PreparedStatement.java -+++ b/src/com/mysql/jdbc/PreparedStatement.java -@@ -5096,6 +5096,18 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/PreparedStatement.java +=================================================================== +--- 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; } @@ -343,9 +359,11 @@ Subject: [PATCH] Java 8 compatibility /** * JDBC 4.2 * Same as PreparedStatement.executeUpdate() but returns long instead of int. ---- a/src/com/mysql/jdbc/ResultSetImpl.java -+++ b/src/com/mysql/jdbc/ResultSetImpl.java -@@ -7890,4 +7890,200 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/ResultSetImpl.java +=================================================================== +--- 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() { return this.exceptionInterceptor; } @@ -546,9 +564,11 @@ Subject: [PATCH] Java 8 compatibility + throw new UnsupportedOperationException(); + } } ---- a/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java -@@ -1498,6 +1498,142 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java +=================================================================== +--- 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; } @@ -691,9 +711,11 @@ Subject: [PATCH] Java 8 compatibility // // public Reader getCharacterStream(int parameterIndex) throws SQLException { // try { ---- a/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java -@@ -2885,4 +2885,56 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java +=================================================================== +--- 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() { return this.mc.isUseSSLExplicit(); } @@ -750,13 +772,14 @@ Subject: [PATCH] Java 8 compatibility + throw new UnsupportedOperationException(); + } } ---- a/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java -@@ -435,4 +435,16 @@ - // public T unwrap(Class iface) throws SQLException { +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java +=================================================================== +--- mysql-connector-java-5.1.47.orig/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java ++++ 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(); // } -+ + + public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException { + throw new java.sql.SQLFeatureNotSupportedException(); + } @@ -768,10 +791,15 @@ Subject: [PATCH] Java 8 compatibility + public boolean isWrapperFor(Class iface) throws SQLException { + throw new UnsupportedOperationException(); + } - } ---- a/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java -@@ -33,6 +33,7 @@ ++ + @Override + public Properties exposeAsProperties(Properties props) throws SQLException { + 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.ConnectionEventListener; import javax.sql.PooledConnection; @@ -779,7 +807,7 @@ Subject: [PATCH] Java 8 compatibility import com.mysql.jdbc.ExceptionInterceptor; import com.mysql.jdbc.SQLError; -@@ -230,4 +231,14 @@ +@@ -230,4 +231,14 @@ public class MysqlPooledConnection imple protected ExceptionInterceptor getExceptionInterceptor() { return this.exceptionInterceptor; } @@ -795,9 +823,11 @@ Subject: [PATCH] Java 8 compatibility + } } \ No newline at end of file ---- a/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java -@@ -567,6 +567,78 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java +=================================================================== +--- 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(); } @@ -876,9 +906,11 @@ Subject: [PATCH] Java 8 compatibility // // public void setAsciiStream(int parameterIndex, InputStream x) // throws SQLException { ---- a/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java -@@ -581,6 +581,34 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java +=================================================================== +--- 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 * Same as {@link #executeBatch()} but returns long[] instead of int[]. ---- a/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java -+++ b/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java -@@ -199,4 +199,12 @@ +Index: mysql-connector-java-5.1.47/src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java +=================================================================== +--- 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(); } } diff --git a/mysql-connector-java.changes b/mysql-connector-java.changes index d89647a..8b45403 100644 --- a/mysql-connector-java.changes +++ b/mysql-connector-java.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Mon Nov 5 15:22:11 UTC 2018 - Pedro Monreal Gonzalez + +- 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 diff --git a/mysql-connector-java.spec b/mysql-connector-java.spec index 72e4cf6..657cb9e 100644 --- a/mysql-connector-java.spec +++ b/mysql-connector-java.spec @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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 -Version: 5.1.43 +Version: 5.1.47 Release: 0 Summary: Official JDBC Driver for MySQL License: GPL-2.0-or-later