Tomáš Chvátal 2017-05-18 11:51:00 +00:00 committed by Git OBS Bridge
parent f772ac4b8f
commit 1a9cfd5f88

View File

@ -118,21 +118,15 @@ Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/ConnectionImpl.java
===================================================================
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/ConnectionImpl.java
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/ConnectionImpl.java
@@ -36,12 +36,17 @@ import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import java.sql.Blob;
import java.sql.DatabaseMetaData;
+import java.sql.NClob;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
+import java.sql.SQLXML;
@@ -42,6 +42,11 @@ import java.sql.SQLException;
import java.sql.SQLPermission;
import java.sql.SQLWarning;
import java.sql.Savepoint;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.SQLXML;
+import java.sql.NClob;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
@ -793,11 +787,10 @@ Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/ResultSetMetaData.java
import java.sql.Types;
/**
@@ -816,4 +818,8 @@ public class ResultSetMetaData implement
@@ -816,4 +818,7 @@ public class ResultSetMetaData implement
throw SQLError.createSQLException("Unable to unwrap to " + iface.toString(), SQLError.SQL_STATE_ILLEGAL_ARGUMENT, this.exceptionInterceptor);
}
}
+
+ public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
@ -1183,6 +1176,113 @@ Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/PreparedSta
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
@@ -922,4 +926,106 @@ public class PreparedStatementWrapper ex
return -1; // we actually never get here, but the compiler can't figure that out
}
+
+ public void setNClob(String parameterName, NClob value) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ public void setNClob(String parameterName, Reader reader) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setNClob(int parameterName, NClob value) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setNClob(int parameterName, Reader reader, long length) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setNClob(int parameterName, Reader reader) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setClob(int parameterIndex, Reader reader) throws SQLException{
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException{
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setCharacterStream(int parameterIndex, java.io.Reader reader) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setBinaryStream(int parameterIndex, java.io.InputStream x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setAsciiStream(int parameterIndex, java.io.InputStream x) throws SQLException{
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setCharacterStream(int parameterIndex, java.io.Reader reader, long length) throws SQLException{
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException{
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setNString(int parameterIndex, String value) throws SQLException{
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
+
+ @Override
+ public void setRowId(int parameterIndex, RowId x) throws SQLException {
+ throw new SQLFeatureNotSupportedException("Not supported");
+ }
}
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
===================================================================
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
@ -1817,3 +1917,16 @@ Index: mysql-connector-java-5.1.42/src/com/mysql/fabric/jdbc/FabricMySQLDriver.j
+ }
+
}
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4ReplicationMySQLConnection.java
===================================================================
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/JDBC4ReplicationMySQLConnection.java
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4ReplicationMySQLConnection.java
@@ -107,7 +107,7 @@ public class JDBC4ReplicationMySQLConnec
/**
* @see java.sql.Connection#createClob()
*/
- public Clob createClob() {
+ public Clob createClob() throws SQLException {
return this.getJDBC4Connection().createClob();
}