- update to 5.1.25 (see CHANGES for full list)
* support for Connection Attributes when used with MySQL Server versions (5.6+). 5.1.24 * support of password expiration protocol. This introduces new boolean connection property disconnectOnExpiredPasswords. 5.1.23 * added support of password expiration protocol. * driver now allows the mechanism for caching MySQL server configuration values replaceable at runtime. * Connection.setReadOnly() will take advantage of server-side support for read-only transactions present in MySQL-5.6 and newer. Calling .isReadOnly() will incur a round-trip if useLocalSessionState. 5.1.22 * support of ON UPDATE CURRENT_TIMESTAMP for TIMESTAMP and DATETIME fields. 5.1.21 * new built-in authentication plugin com.mysql.jdbc.authentication.Sha256PasswordPlugin ("sha256_password"). * Added new built-in authentication plugin com.mysql.jdbc.authentication.MysqlClearPasswordPlugin ("mysql_clear_password"). It allows C/J based clients to connect to MySQL accounts. * the ability to add new client-side prepared statement parse info caches * implemented several JDBC-4.1 methods from Java-7: 5.1.19: * Added support for pluggable authentication via the com.mysql.jdbc.AuthenticationPlugin - rebase and rename mysql-connector-java-5.1.19-java7.patch to * mysql-connector-java-7-jdbc-4.1.patch OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=15
This commit is contained in:
parent
2aa871198f
commit
dba89fbc38
@ -1,81 +0,0 @@
|
|||||||
diff -Naur mysql-connector-java-5.1.17.orig/src/com/mysql/jdbc/JDBC4Connection.java mysql-connector-java-5.1.17/src/com/mysql/jdbc/JDBC4Connection.java
|
|
||||||
--- mysql-connector-java-5.1.17.orig/src/com/mysql/jdbc/JDBC4Connection.java 2011-07-04 10:24:08.000000000 -0400
|
|
||||||
+++ mysql-connector-java-5.1.17/src/com/mysql/jdbc/JDBC4Connection.java 2012-05-03 18:03:28.311324320 -0400
|
|
||||||
@@ -28,9 +28,11 @@
|
|
||||||
import java.sql.Clob;
|
|
||||||
import java.sql.SQLClientInfoException;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.sql.SQLXML;
|
|
||||||
import java.sql.NClob;
|
|
||||||
import java.sql.Struct;
|
|
||||||
+import java.util.concurrent.Executor;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.TimerTask;
|
|
||||||
|
|
||||||
@@ -234,4 +236,25 @@
|
|
||||||
|
|
||||||
return this.infoProvider;
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ public int getNetworkTimeout() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public void setNetworkTimeout(Executor executor, int millis) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public void abort(Executor executor) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public String getSchema() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public void setSchema(String schema) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
diff -Naur mysql-connector-java-5.1.17.orig/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java mysql-connector-java-5.1.17/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java
|
|
||||||
--- mysql-connector-java-5.1.17.orig/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java 2011-07-04 10:24:08.000000000 -0400
|
|
||||||
+++ mysql-connector-java-5.1.17/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java 2012-05-03 18:03:28.312324397 -0400
|
|
||||||
@@ -29,9 +29,11 @@
|
|
||||||
import java.sql.Clob;
|
|
||||||
import java.sql.SQLClientInfoException;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.sql.SQLXML;
|
|
||||||
import java.sql.NClob;
|
|
||||||
import java.sql.Struct;
|
|
||||||
+import java.util.concurrent.Executor;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.TimerTask;
|
|
||||||
|
|
||||||
@@ -129,4 +131,24 @@
|
|
||||||
return this.getJDBC4Connection().getClientInfoProviderImpl();
|
|
||||||
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ public int getNetworkTimeout() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public void setNetworkTimeout(Executor executor, int millis) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public void abort(Executor executor) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public String getSchema() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public void setSchema(String schema) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
||||||
+ }
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5715fe210ad0d6ff606841b65ea02840babbf4d0c881e30478d2f9bcb6762420
|
|
||||||
size 1307836
|
|
3
mysql-connector-java-5.1.25-suse.tar.xz
Normal file
3
mysql-connector-java-5.1.25-suse.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:37a31f6afea8ce3b4c382dd0b0e93b284bdbb3e9c7180919581c0fbfdf551260
|
||||||
|
size 1336544
|
1978
mysql-connector-java-7-jdbc-4.1.patch
Normal file
1978
mysql-connector-java-7-jdbc-4.1.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 19 14:12:57 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
- update to 5.1.25 (see CHANGES for full list)
|
||||||
|
* support for Connection Attributes when used with MySQL Server versions (5.6+).
|
||||||
|
5.1.24
|
||||||
|
* support of password expiration protocol. This introduces new boolean
|
||||||
|
connection property disconnectOnExpiredPasswords.
|
||||||
|
5.1.23
|
||||||
|
* added support of password expiration protocol.
|
||||||
|
* driver now allows the mechanism for caching MySQL server configuration
|
||||||
|
values replaceable at runtime.
|
||||||
|
* Connection.setReadOnly() will take advantage of server-side support for
|
||||||
|
read-only transactions present in MySQL-5.6 and newer. Calling .isReadOnly()
|
||||||
|
will incur a round-trip if useLocalSessionState.
|
||||||
|
5.1.22
|
||||||
|
* support of ON UPDATE CURRENT_TIMESTAMP for TIMESTAMP and DATETIME fields.
|
||||||
|
5.1.21
|
||||||
|
* new built-in authentication plugin
|
||||||
|
com.mysql.jdbc.authentication.Sha256PasswordPlugin ("sha256_password").
|
||||||
|
* Added new built-in authentication plugin
|
||||||
|
com.mysql.jdbc.authentication.MysqlClearPasswordPlugin ("mysql_clear_password").
|
||||||
|
It allows C/J based clients to connect to MySQL accounts.
|
||||||
|
* the ability to add new client-side prepared statement parse info caches
|
||||||
|
* implemented several JDBC-4.1 methods from Java-7:
|
||||||
|
5.1.19:
|
||||||
|
* Added support for pluggable authentication via the com.mysql.jdbc.AuthenticationPlugin
|
||||||
|
- rebase and rename mysql-connector-java-5.1.19-java7.patch to
|
||||||
|
* mysql-connector-java-7-jdbc-4.1.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 13 09:04:23 UTC 2013 - pgajdos@suse.com
|
Fri Sep 13 09:04:23 UTC 2013 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -18,13 +18,14 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: mysql-connector-java
|
Name: mysql-connector-java
|
||||||
Version: 5.1.19
|
Version: 5.1.25
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Official JDBC Driver for MySQL
|
Summary: Official JDBC Driver for MySQL
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://www.mysql.com/downloads/api-jdbc-stable.html
|
Url: http://www.mysql.com/downloads/api-jdbc-stable.html
|
||||||
|
|
||||||
|
# url-for-download: http://dev.mysql.com/get/Downloads/Connector-J/%{name}-%{version}.zip/from/pick#mirrors
|
||||||
# docs are now under very strict proprietary license by Oracle, so lets not distribute them
|
# docs are now under very strict proprietary license by Oracle, so lets not distribute them
|
||||||
# remove bundled jars as well
|
# remove bundled jars as well
|
||||||
# tar -xf %{name}-%{version}.tar.gz
|
# tar -xf %{name}-%{version}.tar.gz
|
||||||
@ -32,8 +33,8 @@ Url: http://www.mysql.com/downloads/api-jdbc-stable.html
|
|||||||
# find %{name}-%{version} -name '*jar' -delete
|
# find %{name}-%{version} -name '*jar' -delete
|
||||||
# tar -xJf %{name}-%{version}-suse.tar.xz
|
# tar -xJf %{name}-%{version}-suse.tar.xz
|
||||||
Source0: %{name}-%{version}-suse.tar.xz
|
Source0: %{name}-%{version}-suse.tar.xz
|
||||||
# Patch to build with JDBC 4.1/Java 7
|
# Patch to build Java 7/jdbc 4.1
|
||||||
Patch0: mysql-connector-java-5.1.19-java7.patch
|
Patch0: mysql-connector-java-7-jdbc-4.1.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -41,10 +42,11 @@ BuildArch: noarch
|
|||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ant-contrib
|
BuildRequires: ant-contrib
|
||||||
BuildRequires: apache-commons-logging
|
BuildRequires: apache-commons-logging
|
||||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
#BuildRequires: java-1_5_0-gcj-compat-devel
|
||||||
BuildRequires: java-devel >= 1.6.0
|
BuildRequires: java-devel >= 1.6.0
|
||||||
|
#BuildRequires: jta >= 1.0
|
||||||
|
BuildRequires: geronimo-jta-1_1-api
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
BuildRequires: jta
|
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: slf4j
|
BuildRequires: slf4j
|
||||||
#!BuildIgnore: maven2-bootstrap
|
#!BuildIgnore: maven2-bootstrap
|
||||||
@ -99,7 +101,7 @@ export CLASSPATH=$(build-classpath \
|
|||||||
|
|
||||||
# we need jdk5 for jdbc3.0
|
# we need jdk5 for jdbc3.0
|
||||||
# XXX: JAVA_HOME must be setup **after** CLASSPATH
|
# XXX: JAVA_HOME must be setup **after** CLASSPATH
|
||||||
export JAVA_HOME=%{_libdir}/jvm/java-1.5.0-gcj
|
#export JAVA_HOME=%{_libdir}/jvm/java-1.5.0-gcj
|
||||||
ant -DbuildDir=build-mysql-jdbc \
|
ant -DbuildDir=build-mysql-jdbc \
|
||||||
-DdistDir=dist-mysql-jdbc \
|
-DdistDir=dist-mysql-jdbc \
|
||||||
-Dcom.mysql.jdbc.java6.javac="%{javac}" \
|
-Dcom.mysql.jdbc.java6.javac="%{javac}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user