Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60719ce248 | ||
|
|
6926b0e7cb | ||
|
|
49c0e8f376 |
4 changed files with 83 additions and 26 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,5 +1,2 @@
|
||||||
mysql-connector-java-5.1.12.tar.xz
|
|
||||||
/mysql-connector-java-5.1.14.tar.xz
|
|
||||||
/mysql-connector-java-5.1.15.tar.gz
|
|
||||||
/mysql-connector-java-5.1.15.tar.xz
|
|
||||||
/mysql-connector-java-5.1.17.tar.xz
|
/mysql-connector-java-5.1.17.tar.xz
|
||||||
|
/mysql-connector-java-5.1.21.tar.xz
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,60 @@
|
||||||
diff -up ./src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java.sav ./src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java
|
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
|
||||||
--- ./src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java.sav 2012-01-25 14:43:27.000000000 -0500
|
--- mysql-connector-java-5.1.17.orig/src/com/mysql/jdbc/JDBC4Connection.java 2011-07-04 10:24:08.000000000 -0400
|
||||||
+++ ./src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java 2012-01-25 14:48:52.000000000 -0500
|
+++ mysql-connector-java-5.1.17/src/com/mysql/jdbc/JDBC4Connection.java 2012-05-03 18:03:28.311324320 -0400
|
||||||
@@ -40,6 +40,8 @@ import com.mysql.jdbc.ConnectionImpl;
|
@@ -28,9 +28,11 @@
|
||||||
import com.mysql.jdbc.Messages;
|
import java.sql.Clob;
|
||||||
import com.mysql.jdbc.SQLError;
|
import java.sql.SQLClientInfoException;
|
||||||
|
import java.sql.SQLException;
|
||||||
+import java.util.concurrent.Executor;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
+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;
|
||||||
|
|
||||||
public class JDBC4LoadBalancedMySQLConnection extends
|
@@ -234,4 +236,25 @@
|
||||||
LoadBalancedMySQLConnection implements JDBC4MySQLConnection {
|
|
||||||
@@ -129,4 +131,24 @@ public class JDBC4LoadBalancedMySQLConne
|
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();
|
return this.getJDBC4Connection().getClientInfoProviderImpl();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
%global builddir build-mysql-jdbc
|
%global builddir build-mysql-jdbc
|
||||||
%global distdir dist-mysql-jdbc
|
%global distdir dist-mysql-jdbc
|
||||||
%global gcj_support 1
|
%global gcj_support 0
|
||||||
%global java6_rtpath %{java_home}/jre/lib/rt.jar
|
%global java6_rtpath %{java_home}/jre/lib/rt.jar
|
||||||
%global java6_javacpath /usr/bin/javac
|
%global java6_javacpath /usr/bin/javac
|
||||||
%global java6_javapath /usr/bin/javac
|
%global java6_javapath /usr/bin/javac
|
||||||
|
|
||||||
Summary: Official JDBC driver for MySQL
|
Summary: Official JDBC driver for MySQL
|
||||||
Name: mysql-connector-java
|
Name: mysql-connector-java
|
||||||
Version: 5.1.17
|
Version: 5.1.21
|
||||||
Release: 4%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
# MySQL FLOSS Exception
|
# MySQL FLOSS Exception
|
||||||
|
|
@ -37,26 +37,30 @@ Source0: %{name}-%{version}.tar.xz
|
||||||
Patch0: %{name}-jdbc-4.1.patch
|
Patch0: %{name}-jdbc-4.1.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{epoch}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{epoch}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
%if ! %{gcj_support}
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{gcj_support}
|
%if %{gcj_support}
|
||||||
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
||||||
Requires(post): java-gcj-compat >= 1.0.31
|
Requires(post): java-gcj-compat >= 1.0.31
|
||||||
Requires(postun): java-gcj-compat >= 1.0.31
|
Requires(postun): java-gcj-compat >= 1.0.31
|
||||||
%else
|
|
||||||
BuildRequires: java-devel >= 1.4.2
|
|
||||||
Requires: java >= 1.4.2
|
|
||||||
%endif
|
%endif
|
||||||
Requires: jta >= 1.0
|
|
||||||
Requires: slf4j
|
BuildRequires: java-devel >= 1:1.6.0
|
||||||
BuildRequires: ant >= 1.6.0
|
BuildRequires: ant >= 1.6.0
|
||||||
BuildRequires: ant-contrib >= 1.0
|
BuildRequires: ant-contrib >= 1.0
|
||||||
BuildRequires: jpackage-utils >= 1.6
|
BuildRequires: jpackage-utils >= 1.6
|
||||||
BuildRequires: jta >= 1.0
|
BuildRequires: jta >= 1.0
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: slf4j
|
BuildRequires: slf4j
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
|
||||||
BuildRequires: java-1.5.0-gcj-devel
|
BuildRequires: java-1.5.0-gcj-devel
|
||||||
BuildRequires: jakarta-commons-logging
|
BuildRequires: jakarta-commons-logging
|
||||||
|
|
||||||
|
Requires: java >= 1:1.6.0
|
||||||
|
Requires: jta >= 1.0
|
||||||
|
Requires: slf4j
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
Requires(post): jpackage-utils
|
Requires(post): jpackage-utils
|
||||||
Requires(postun): jpackage-utils
|
Requires(postun): jpackage-utils
|
||||||
|
|
@ -79,7 +83,7 @@ rm README README.txt
|
||||||
# fix line endings
|
# fix line endings
|
||||||
sed -i 's/\r//' docs/README.txt
|
sed -i 's/\r//' docs/README.txt
|
||||||
|
|
||||||
%patch0
|
%patch0 -p1 -F3
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
|
@ -151,6 +155,18 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 10 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 1:5.1.21-2
|
||||||
|
- More fuzz for mysql-connector-java-jdbc-4.1.patch
|
||||||
|
|
||||||
|
* Tue Jul 10 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 1:5.1.21-1
|
||||||
|
- Update to 5.1.21
|
||||||
|
|
||||||
|
* Sat May 5 2012 Tom Lane <tgl@redhat.com> 1:5.1.17-5
|
||||||
|
- Switch to noarch (non-GCJ) build
|
||||||
|
Resolves: #688937, #819139
|
||||||
|
- Fix mysql-connector-java-jdbc-4.1.patch to cover both driver classes
|
||||||
|
Related: #816696
|
||||||
|
|
||||||
* Wed Jan 25 2012 Deepak Bhole <dbhole@redhat.com> - 1:5.1.17-4
|
* Wed Jan 25 2012 Deepak Bhole <dbhole@redhat.com> - 1:5.1.17-4
|
||||||
- Removed java-1.6.0-openjdk-devel requirement
|
- Removed java-1.6.0-openjdk-devel requirement
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
4430a10959de99f90d7f6debedcd4acc mysql-connector-java-5.1.17.tar.xz
|
26b9b3c19f50a8bf104bba59929628c8 mysql-connector-java-5.1.21.tar.xz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue