2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/CallableStatement.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/CallableStatement.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/CallableStatement.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -32,11 +32,15 @@ import java.net.URL;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.Array;
|
|
|
|
import java.sql.Blob;
|
|
|
|
import java.sql.Clob;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.Date;
|
|
|
|
import java.sql.ParameterMetaData;
|
|
|
|
import java.sql.Ref;
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
+import java.sql.RowId;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
import java.sql.Time;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
import java.sql.Types;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -2432,4 +2436,95 @@ public class CallableStatement extends P
|
|
|
|
|
|
|
|
return super.executeLargeBatch();
|
2015-04-21 19:01:55 +02:00
|
|
|
}
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setNClob(String parameterName, NClob value) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setNClob(String parameterName, Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public java.io.Reader getCharacterStream(int parameterIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public java.io.Reader getCharacterStream(String parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public java.io.Reader getNCharacterStream(int parameterIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public java.io.Reader getNCharacterStream(String parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public String getNString(int parameterIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public String getNString(String parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public SQLXML getSQLXML(int parameterIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public SQLXML getSQLXML(String parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public NClob getNClob (int parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public NClob getNClob (String parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setNString(String parameterName, String value) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setRowId(String parameterName, RowId x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public RowId getRowId(int parameterIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public RowId getRowId(String parameterName) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/ConnectionImpl.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- 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;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.nio.charset.CharsetEncoder;
|
|
|
|
import java.sql.Blob;
|
|
|
|
import java.sql.DatabaseMetaData;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.ResultSet;
|
2017-05-18 13:05:10 +02:00
|
|
|
import java.sql.ResultSetMetaData;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
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.util.ArrayList;
|
|
|
|
import java.util.Calendar;
|
|
|
|
import java.util.Collections;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -5507,4 +5512,71 @@ public class ConnectionImpl extends Conn
|
|
|
|
}
|
|
|
|
}
|
2015-04-21 19:01:55 +02:00
|
|
|
}
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public String getClientInfo(String name) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public Properties getClientInfo() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(String name, String value)
|
|
|
|
+ throws SQLClientInfoException {
|
|
|
|
+ //throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(Properties properties) throws SQLClientInfoException {
|
|
|
|
+ //throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public boolean isValid(int timeout) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public SQLXML createSQLXML() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public Clob createClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/DatabaseMetaData.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/DatabaseMetaData.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/DatabaseMetaData.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -33,6 +33,8 @@ import java.sql.ResultSet;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.SQLException;
|
|
|
|
import java.sql.Statement;
|
|
|
|
import java.sql.Types;
|
|
|
|
+import java.sql.RowIdLifetime;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.util.ArrayList;
|
2015-04-21 19:01:55 +02:00
|
|
|
import java.util.Arrays;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.util.Collections;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -7902,4 +7904,25 @@ public class DatabaseMetaData implements
|
2015-04-21 19:01:55 +02:00
|
|
|
public boolean generatedKeyAlwaysReturned() throws SQLException {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public RowIdLifetime getRowIdLifetime() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/Driver.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/Driver.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/Driver.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -24,6 +24,8 @@
|
2013-09-19 16:22:42 +02:00
|
|
|
package com.mysql.jdbc;
|
|
|
|
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.util.logging.Logger;
|
|
|
|
|
|
|
|
/**
|
2015-04-21 19:01:55 +02:00
|
|
|
* The Java SQL framework allows for multiple database drivers. Each driver should supply a class that implements the Driver interface
|
2015-06-11 17:13:13 +02:00
|
|
|
@@ -61,4 +63,10 @@ public class Driver extends NonRegisteri
|
|
|
|
public Driver() throws SQLException {
|
2015-04-21 19:01:55 +02:00
|
|
|
// Required for Class.forName().newInstance()
|
|
|
|
}
|
2013-09-19 16:22:42 +02:00
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-06-11 17:13:13 +02:00
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4Connection.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/JDBC4Connection.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4Connection.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -27,9 +27,11 @@ import java.sql.Blob;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.Clob;
|
2015-04-21 19:01:55 +02:00
|
|
|
import java.sql.SQLClientInfoException;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
2015-04-21 19:01:55 +02:00
|
|
|
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;
|
2013-09-19 16:22:42 +02:00
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -200,7 +202,8 @@ public class JDBC4Connection extends Con
|
2015-04-21 19:01:55 +02:00
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createClob()
|
|
|
|
*/
|
|
|
|
- public Clob createClob() {
|
|
|
|
+ @Override
|
|
|
|
+ public com.mysql.jdbc.Clob createClob() throws SQLException {
|
|
|
|
return new com.mysql.jdbc.Clob(getExceptionInterceptor());
|
|
|
|
}
|
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -236,4 +239,25 @@ public class JDBC4Connection extends Con
|
2015-04-21 19:01:55 +02:00
|
|
|
return this.infoProvider;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int getNetworkTimeout() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public void setNetworkTimeout(Executor executor, int millis) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public void abort(Executor executor) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public String getSchema() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public void setSchema(String schema) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -27,9 +27,11 @@ import java.sql.Blob;
|
|
|
|
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;
|
|
|
|
|
|
|
|
@@ -100,21 +102,24 @@ public class JDBC4LoadBalancedMySQLConne
|
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createBlob()
|
|
|
|
*/
|
|
|
|
- public Blob createBlob() {
|
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException {
|
|
|
|
return this.getJDBC4Connection().createBlob();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createClob()
|
|
|
|
*/
|
|
|
|
- public Clob createClob() {
|
|
|
|
+ @Override
|
2015-04-22 10:36:00 +02:00
|
|
|
+ public com.mysql.jdbc.Clob createClob() throws SQLException {
|
2015-04-21 19:01:55 +02:00
|
|
|
return this.getJDBC4Connection().createClob();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createNClob()
|
|
|
|
*/
|
|
|
|
- public NClob createNClob() {
|
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException {
|
|
|
|
return this.getJDBC4Connection().createNClob();
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -123,4 +128,25 @@ public class JDBC4LoadBalancedMySQLConne
|
|
|
|
return this.getJDBC4Connection().getClientInfoProviderImpl();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int getNetworkTimeout() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public void setNetworkTimeout(Executor executor, int millis) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public void abort(Executor executor) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public String getSchema() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ public void setSchema(String schema) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4MySQLConnection.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/JDBC4MySQLConnection.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4MySQLConnection.java
|
|
|
|
@@ -59,11 +59,14 @@ public interface JDBC4MySQLConnection ex
|
2015-04-21 19:01:55 +02:00
|
|
|
|
|
|
|
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException;
|
|
|
|
|
|
|
|
- public Blob createBlob();
|
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException;
|
|
|
|
|
|
|
|
- public Clob createClob();
|
|
|
|
+ @Override
|
|
|
|
+ public Clob createClob() throws SQLException;
|
|
|
|
|
|
|
|
- public NClob createNClob();
|
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException;
|
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
/*
|
|
|
|
* Non standard methods:
|
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/MysqlParameterMetadata.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/MysqlParameterMetadata.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/MysqlParameterMetadata.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -25,6 +25,7 @@ package com.mysql.jdbc;
|
|
|
|
|
|
|
|
import java.sql.ParameterMetaData;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.sql.Types;
|
|
|
|
|
|
|
|
public class MysqlParameterMetadata implements ParameterMetaData {
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/NonRegisteringDriver.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/NonRegisteringDriver.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/NonRegisteringDriver.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -31,6 +31,7 @@ import java.lang.ref.ReferenceQueue;
|
|
|
|
import java.net.URLDecoder;
|
|
|
|
import java.sql.DriverPropertyInfo;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.List;
|
|
|
|
@@ -39,6 +40,9 @@ import java.util.Properties;
|
|
|
|
import java.util.StringTokenizer;
|
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
|
|
|
|
+
|
|
|
|
+import java.util.logging.Logger;
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* The Java SQL framework allows for multiple database drivers. Each driver should supply a class that implements the Driver interface
|
|
|
|
*
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -908,4 +912,9 @@ public class NonRegisteringDriver implem
|
2015-04-21 19:01:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/PreparedStatement.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/PreparedStatement.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/PreparedStatement.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -41,6 +41,7 @@ import java.nio.charset.Charset;
|
|
|
|
import java.nio.charset.CharsetEncoder;
|
|
|
|
import java.sql.Array;
|
|
|
|
import java.sql.Clob;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.DatabaseMetaData;
|
|
|
|
import java.sql.Date;
|
|
|
|
import java.sql.ParameterMetaData;
|
|
|
|
@@ -49,6 +50,9 @@ import java.sql.SQLException;
|
|
|
|
import java.sql.Time;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
import java.sql.Types;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
+import java.sql.RowId;
|
|
|
|
import java.text.ParsePosition;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.ArrayList;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -5103,4 +5107,20 @@ public class PreparedStatement extends c
|
|
|
|
public long executeLargeUpdate() throws SQLException {
|
|
|
|
return executeUpdateInternal(true, false);
|
2015-04-21 19:01:55 +02:00
|
|
|
}
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException{
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setNClob(int parameterIndex, NClob value) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setRowId(int parameterIndex, RowId x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/ResultSetImpl.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/ResultSetImpl.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/ResultSetImpl.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -27,6 +27,7 @@ import java.io.ByteArrayInputStream;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.io.ObjectInputStream;
|
|
|
|
+import java.io.Reader;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
import java.lang.reflect.Constructor;
|
|
|
|
@@ -36,9 +37,13 @@ import java.net.MalformedURLException;
|
|
|
|
import java.net.URL;
|
|
|
|
import java.sql.Array;
|
|
|
|
import java.sql.Date;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.Ref;
|
|
|
|
+import java.sql.RowId;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
import java.sql.SQLWarning;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
import java.sql.Time;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
import java.sql.Types;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -7890,4 +7895,250 @@ public class ResultSetImpl implements Re
|
2015-04-21 19:01:55 +02:00
|
|
|
protected ExceptionInterceptor getExceptionInterceptor() {
|
|
|
|
return this.exceptionInterceptor;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNClob(String columnLabel, Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNClob(int columnIndex, Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateClob(int columnIndex, Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateClob(String columnLabel, Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
2013-09-19 16:22:42 +02:00
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
2013-09-19 16:22:42 +02:00
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateCharacterStream(String columnLabel, java.io.Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBinaryStream(String columnLabel, java.io.InputStream x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateAsciiStream(String columnLabel, java.io.InputStream x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateCharacterStream(int columnIndex, java.io.Reader x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNCharacterStream(String columnLabel, java.io.Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2013-09-19 16:22:42 +02:00
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2013-09-19 16:22:42 +02:00
|
|
|
+
|
2015-04-21 19:01:55 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void updateCharacterStream(String columnLabel, java.io.Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBinaryStream(String columnLabel, java.io.InputStream x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateAsciiStream(String columnLabel, java.io.InputStream x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNCharacterStream(String columnLabel, java.io.Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public java.io.Reader getNCharacterStream(int columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public java.io.Reader getNCharacterStream(String columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public String getNString(int columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public String getNString(String columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public SQLXML getSQLXML(int columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public SQLXML getSQLXML(String columnLabel) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public NClob getNClob(int columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public NClob getNClob(String columnLabel) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNString(String columnLabel, String nString) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateNString(int columnLabel, String nString) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public int getHoldability() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateRowId(int columnIndex, RowId x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void updateRowId(String columnLabel, RowId x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public RowId getRowId(int columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public RowId getRowId(String columnIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/ResultSetMetaData.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/ResultSetMetaData.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/ResultSetMetaData.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -23,7 +23,9 @@
|
2013-09-19 16:22:42 +02:00
|
|
|
|
2015-04-21 19:01:55 +02:00
|
|
|
package com.mysql.jdbc;
|
|
|
|
|
|
|
|
+import java.sql.NClob;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.sql.Types;
|
|
|
|
|
2015-04-21 19:01:55 +02:00
|
|
|
/**
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -816,4 +818,8 @@ public class ResultSetMetaData implement
|
2015-04-21 19:01:55 +02:00
|
|
|
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");
|
|
|
|
+ }
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/StatementImpl.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/StatementImpl.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/StatementImpl.java
|
|
|
|
@@ -33,6 +33,8 @@ import java.sql.ResultSet;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.SQLException;
|
2015-04-21 19:01:55 +02:00
|
|
|
import java.sql.SQLWarning;
|
|
|
|
import java.sql.Types;
|
2013-09-19 16:22:42 +02:00
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
2015-04-21 19:01:55 +02:00
|
|
|
+import java.sql.*;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.util.ArrayList;
|
2015-04-21 19:01:55 +02:00
|
|
|
import java.util.Calendar;
|
|
|
|
import java.util.Collections;
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -33,8 +33,12 @@ import java.sql.Blob;
|
|
|
|
import java.sql.CallableStatement;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.Clob;
|
|
|
|
import java.sql.Date;
|
2015-04-21 19:01:55 +02:00
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.Ref;
|
|
|
|
+import java.sql.RowId;
|
|
|
|
import java.sql.SQLException;
|
2013-09-19 16:22:42 +02:00
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLXML;
|
2015-04-21 19:01:55 +02:00
|
|
|
import java.sql.Time;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
import java.util.Calendar;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -2333,4 +2337,169 @@ public class CallableStatementWrapper ex
|
|
|
|
// throw SQLError.createSQLFeatureNotSupportedException();
|
2015-04-21 19:01:55 +02:00
|
|
|
// }
|
|
|
|
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public <T> T getObject(String parameterName, Class<T> type) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setBlob(String parameterName, InputStream inputStream) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setClob(String parameterName, Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setNCharacterStream(String parameterName, Reader value) throws SQLException{
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setCharacterStream(String parameterName, java.io.Reader reader) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setBinaryStream(String parameterName, java.io.InputStream x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
2013-09-19 16:22:42 +02:00
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setAsciiStream(String parameterName, java.io.InputStream x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
2013-09-19 16:22:42 +02:00
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setCharacterStream(String parameterName, java.io.Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setBinaryStream(String parameterName, java.io.InputStream x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setAsciiStream(String parameterName, java.io.InputStream x, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setClob (String parameterName, Clob x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setBlob (String parameterName, Blob x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public java.io.Reader getCharacterStream(String parameterName) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public java.io.Reader getCharacterStream(int parameterIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public java.io.Reader getNCharacterStream(String parameterName) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public java.io.Reader getNCharacterStream(int parameterIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public String getNString(String parameterName) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public String getNString(int parameterIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public SQLXML getSQLXML(String parameterName) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public SQLXML getSQLXML(int parameterIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public NClob getNClob (String parameterName) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public NClob getNClob (int parameterIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setClob(String parameterName, Reader reader, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setNClob(String parameterName, NClob value) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setNString(String parameterName, String value) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setRowId(String parameterName, RowId x) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public RowId getRowId(String parameterName) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public RowId getRowId(int parameterIndex) throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -24,8 +24,15 @@
|
|
|
|
package com.mysql.jdbc.jdbc2.optional;
|
|
|
|
|
|
|
|
import java.lang.reflect.Constructor;
|
|
|
|
+import java.sql.Blob;
|
|
|
|
+import java.sql.Clob;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
import java.sql.Savepoint;
|
|
|
|
+import java.sql.SQLClientInfoException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.Struct;
|
|
|
|
import java.sql.Statement;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Properties;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -2885,4 +2892,67 @@ public class ConnectionWrapper extends W
|
|
|
|
public boolean isUseSSLExplicit() {
|
|
|
|
return this.mc.isUseSSLExplicit();
|
2015-04-21 19:01:55 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getClientInfo(String name) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Properties getClientInfo() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(String name, String value) throws SQLClientInfoException {
|
|
|
|
+ //throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(Properties properties) throws SQLClientInfoException {
|
|
|
|
+ //throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean isValid(int timeout) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public SQLXML createSQLXML() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
2015-04-22 10:36:00 +02:00
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
2015-04-21 19:01:55 +02:00
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Clob createClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -26,8 +26,10 @@ package com.mysql.jdbc.jdbc2.optional;
|
|
|
|
import java.io.PrintWriter;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Properties;
|
|
|
|
+import java.util.logging.Logger;
|
|
|
|
|
|
|
|
import javax.naming.NamingException;
|
|
|
|
import javax.naming.Reference;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -435,4 +437,20 @@ public class MysqlDataSource extends Con
|
2015-04-22 10:36:00 +02:00
|
|
|
// public <T> T unwrap(Class<T> iface) throws SQLException {
|
2017-05-18 13:05:10 +02:00
|
|
|
// throw SQLError.createSQLFeatureNotSupportedException();
|
2015-04-21 19:01:55 +02:00
|
|
|
// }
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-22 10:36:00 +02:00
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -26,6 +26,7 @@ package com.mysql.jdbc.jdbc2.optional;
|
|
|
|
import java.lang.reflect.Constructor;
|
|
|
|
import java.sql.Connection;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Map;
|
|
|
|
@@ -33,6 +34,7 @@ import java.util.Map;
|
|
|
|
import javax.sql.ConnectionEvent;
|
|
|
|
import javax.sql.ConnectionEventListener;
|
|
|
|
import javax.sql.PooledConnection;
|
|
|
|
+import javax.sql.StatementEventListener;
|
|
|
|
|
|
|
|
import com.mysql.jdbc.ExceptionInterceptor;
|
|
|
|
import com.mysql.jdbc.SQLError;
|
|
|
|
@@ -230,4 +232,13 @@ public class MysqlPooledConnection imple
|
|
|
|
protected ExceptionInterceptor getExceptionInterceptor() {
|
|
|
|
return this.exceptionInterceptor;
|
|
|
|
}
|
|
|
|
-}
|
|
|
|
\ No newline at end of file
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void addStatementEventListener(StatementEventListener listener) {
|
|
|
|
+ }
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void removeStatementEventListener(StatementEventListener listener) {
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -32,12 +32,16 @@ import java.sql.Array;
|
|
|
|
import java.sql.Blob;
|
|
|
|
import java.sql.Clob;
|
|
|
|
import java.sql.Date;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
import java.sql.ParameterMetaData;
|
|
|
|
import java.sql.PreparedStatement;
|
|
|
|
import java.sql.Ref;
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.ResultSetMetaData;
|
|
|
|
+import java.sql.RowId;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
import java.sql.Time;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
import java.util.Calendar;
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -27,6 +27,7 @@ import java.lang.reflect.Constructor;
|
|
|
|
import java.sql.Connection;
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.sql.SQLWarning;
|
|
|
|
import java.sql.Statement;
|
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -722,4 +723,40 @@ public class StatementWrapper extends Wr
|
2015-04-21 19:01:55 +02:00
|
|
|
checkAndFireConnectionError(sqlEx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public boolean isCloseOnCompletion() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void closeOnCompletion() throws SQLException {
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public boolean isPoolable() throws SQLException{
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public void setPoolable(boolean poolable) throws SQLException{
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public boolean isClosed() throws SQLException{
|
2013-09-19 16:22:42 +02:00
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-04-21 19:01:55 +02:00
|
|
|
+
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/testsuite/regression/StatementRegressionTest.java
|
2013-09-19 16:22:42 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/testsuite/regression/StatementRegressionTest.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/testsuite/regression/StatementRegressionTest.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -52,6 +52,11 @@ import java.sql.Ref;
|
2013-09-19 16:22:42 +02:00
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.ResultSetMetaData;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
+import java.sql.RowId;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
import java.sql.SQLWarning;
|
|
|
|
import java.sql.Statement;
|
|
|
|
import java.sql.Time;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -2271,7 +2276,8 @@ public class StatementRegressionTest ext
|
2015-04-21 19:01:55 +02:00
|
|
|
|
|
|
|
try {
|
|
|
|
pStmt = this.conn.prepareStatement("INSERT INTO testNullClob VALUES (?)");
|
|
|
|
- pStmt.setClob(1, null);
|
|
|
|
+ Clob x = null;
|
|
|
|
+ pStmt.setClob(1, x);
|
|
|
|
pStmt.executeUpdate();
|
|
|
|
} finally {
|
|
|
|
if (pStmt != null) {
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -4554,6 +4560,271 @@ public class StatementRegressionTest ext
|
2015-06-11 17:13:13 +02:00
|
|
|
public int getBytesSize() throws SQLException {
|
|
|
|
return 0;
|
|
|
|
}
|
2013-09-19 16:22:42 +02:00
|
|
|
+ @Override
|
|
|
|
+ public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+ @Override
|
|
|
|
+ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(String columnLabel, Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(int columnIndex, Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateClob(int columnIndex, Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateClob(String columnLabel, Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateCharacterStream(String columnLabel, java.io.Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBinaryStream(String columnLabel, java.io.InputStream x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateAsciiStream(String columnLabel, java.io.InputStream x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateCharacterStream(int columnIndex,
|
|
|
|
+ java.io.Reader x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBinaryStream(int columnIndex,
|
|
|
|
+ java.io.InputStream x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateAsciiStream(int columnIndex,
|
|
|
|
+ java.io.InputStream x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNCharacterStream(String columnLabel,
|
|
|
|
+ java.io.Reader reader) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNCharacterStream(int columnIndex,
|
|
|
|
+ java.io.Reader x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateCharacterStream(String columnLabel, java.io.Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBinaryStream(String columnLabel, java.io.InputStream x, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateAsciiStream(String columnLabel, java.io.InputStream x, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateCharacterStream(int columnIndex,
|
|
|
|
+ java.io.Reader x, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateBinaryStream(int columnIndex,
|
|
|
|
+ java.io.InputStream x, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateAsciiStream(int columnIndex,
|
|
|
|
+ java.io.InputStream x, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNCharacterStream(String columnLabel,
|
|
|
|
+ java.io.Reader reader, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNCharacterStream(int columnIndex,
|
|
|
|
+ java.io.Reader x, long length) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public java.io.Reader getNCharacterStream(int columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public java.io.Reader getNCharacterStream(String columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getNString(int columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getNString(String columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public SQLXML getSQLXML(int columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public SQLXML getSQLXML(String columnLabel) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public NClob getNClob(int columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public NClob getNClob(String columnLabel) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNString(String columnLabel, String nString) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateNString(int columnLabel, String nString) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int getHoldability() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateRowId(int columnIndex, RowId x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateRowId(String columnLabel, RowId x) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public RowId getRowId(int columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public RowId getRowId(String columnIndex) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
2015-06-11 17:13:13 +02:00
|
|
|
};
|
|
|
|
}
|
2013-09-19 16:22:42 +02:00
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -6802,6 +7073,7 @@ public class StatementRegressionTest ext
|
2015-04-21 19:01:55 +02:00
|
|
|
expectedUpdCountBatchPStmt = expectedUpdCountBatchPStmtRW;
|
|
|
|
expectedGenKeysBatchPStmt = versionMeetsMinimum(5, 5) ? expectedGenKeysForBatchPStmtRW : expectedGenKeysForBatchPStmtRW51;
|
|
|
|
break;
|
|
|
|
+
|
|
|
|
case 4:
|
|
|
|
// dontCheckOnDuplicateKeyUpdateInSQL=true is canceled by rewriteBatchedStatements=true
|
|
|
|
testConn = getConnectionWithProps("rewriteBatchedStatements=true,dontCheckOnDuplicateKeyUpdateInSQL=true");
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
|
2015-04-21 19:01:55 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
|
2015-04-21 19:01:55 +02:00
|
|
|
@@ -23,13 +23,20 @@
|
|
|
|
|
|
|
|
package com.mysql.fabric.jdbc;
|
2013-09-19 16:22:42 +02:00
|
|
|
|
2015-04-21 19:01:55 +02:00
|
|
|
+import java.sql.Blob;
|
|
|
|
+import java.sql.Clob;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
import java.sql.CallableStatement;
|
|
|
|
import java.sql.DatabaseMetaData;
|
|
|
|
import java.sql.PreparedStatement;
|
|
|
|
import java.sql.SQLException;
|
2015-04-22 10:36:00 +02:00
|
|
|
+import java.sql.SQLClientInfoException;
|
2015-04-21 19:01:55 +02:00
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.sql.SQLWarning;
|
|
|
|
import java.sql.Savepoint;
|
|
|
|
import java.sql.Statement;
|
|
|
|
+import java.sql.Struct;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Calendar;
|
2017-05-18 13:05:10 +02:00
|
|
|
import java.util.Collections;
|
|
|
|
@@ -967,22 +974,6 @@ public class FabricMySQLConnectionProxy
|
|
|
|
return getActiveMySQLConnectionChecked().getMetadataSafeStatement();
|
2015-04-22 10:36:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
- * Methods doing essentially nothing
|
|
|
|
- *
|
|
|
|
- * @param iface
|
|
|
|
- */
|
|
|
|
- public boolean isWrapperFor(Class<?> iface) {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param iface
|
|
|
|
- */
|
|
|
|
- public <T> T unwrap(Class<T> iface) {
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public void unSafeStatementInterceptors() throws SQLException {
|
|
|
|
}
|
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -3023,19 +3014,6 @@ public class FabricMySQLConnectionProxy
|
2015-04-22 10:36:00 +02:00
|
|
|
public void clearWarnings() {
|
|
|
|
}
|
|
|
|
|
|
|
|
- public Properties getClientInfo() {
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
-
|
2017-05-18 13:05:10 +02:00
|
|
|
- /**
|
|
|
|
- *
|
|
|
|
- * @param name
|
|
|
|
- * @return
|
|
|
|
- */
|
2015-04-22 10:36:00 +02:00
|
|
|
- public String getClientInfo(String name) {
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public int getHoldability() {
|
|
|
|
return -1;
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -3065,4 +3043,64 @@ public class FabricMySQLConnectionProxy
|
2013-09-19 16:22:42 +02:00
|
|
|
|
2015-04-21 19:01:55 +02:00
|
|
|
public void decachePreparedStatement(ServerPreparedStatement pstmt) throws SQLException {
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getClientInfo(String name) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Properties getClientInfo() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(String name, String value) throws SQLClientInfoException {
|
|
|
|
+ //throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(Properties properties) throws SQLClientInfoException {
|
|
|
|
+ //throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-22 10:36:00 +02:00
|
|
|
+ public SQLXML createSQLXML() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Clob createClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/MultiHostMySQLConnection.java
|
2015-04-22 10:36:00 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/MultiHostMySQLConnection.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/MultiHostMySQLConnection.java
|
2015-04-22 10:36:00 +02:00
|
|
|
@@ -23,6 +23,12 @@
|
|
|
|
|
|
|
|
package com.mysql.jdbc;
|
|
|
|
|
|
|
|
+import java.sql.Blob;
|
|
|
|
+import java.sql.NClob;
|
|
|
|
+import java.sql.SQLXML;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
+import java.sql.SQLClientInfoException;
|
|
|
|
+import java.sql.Struct;
|
|
|
|
import java.sql.CallableStatement;
|
|
|
|
import java.sql.DatabaseMetaData;
|
|
|
|
import java.sql.PreparedStatement;
|
2017-05-18 13:05:10 +02:00
|
|
|
@@ -2482,4 +2488,67 @@ public class MultiHostMySQLConnection im
|
|
|
|
public boolean isUseSSLExplicit() {
|
|
|
|
return getActiveMySQLConnection().isUseSSLExplicit();
|
2015-04-22 10:36:00 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getClientInfo(String name) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Properties getClientInfo() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(String name, String value) throws SQLClientInfoException {
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void setClientInfo(Properties properties) throws SQLClientInfoException {
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2015-04-21 19:01:55 +02:00
|
|
|
+ public boolean isValid(int timeout) throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public SQLXML createSQLXML() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Clob createClob() throws SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
2015-04-22 10:36:00 +02:00
|
|
|
+ }
|
|
|
|
}
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4MultiHostMySQLConnection.java
|
2015-04-22 10:36:00 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/jdbc/JDBC4MultiHostMySQLConnection.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/jdbc/JDBC4MultiHostMySQLConnection.java
|
2015-04-22 10:36:00 +02:00
|
|
|
@@ -102,21 +102,24 @@ public class JDBC4MultiHostMySQLConnecti
|
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createBlob()
|
|
|
|
*/
|
|
|
|
- public Blob createBlob() {
|
|
|
|
+ @Override
|
|
|
|
+ public Blob createBlob() throws SQLException {
|
|
|
|
return this.getJDBC4Connection().createBlob();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createClob()
|
|
|
|
*/
|
|
|
|
- public Clob createClob() {
|
|
|
|
+ @Override
|
|
|
|
+ public com.mysql.jdbc.Clob createClob() throws SQLException {
|
|
|
|
return this.getJDBC4Connection().createClob();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see java.sql.Connection#createNClob()
|
|
|
|
*/
|
|
|
|
- public NClob createNClob() {
|
|
|
|
+ @Override
|
|
|
|
+ public NClob createNClob() throws SQLException {
|
|
|
|
return this.getJDBC4Connection().createNClob();
|
|
|
|
}
|
|
|
|
|
2017-05-18 13:05:10 +02:00
|
|
|
Index: mysql-connector-java-5.1.42/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java
|
2015-04-22 10:36:00 +02:00
|
|
|
===================================================================
|
2017-05-18 13:05:10 +02:00
|
|
|
--- mysql-connector-java-5.1.42.orig/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java
|
|
|
|
+++ mysql-connector-java-5.1.42/src/com/mysql/fabric/jdbc/FabricMySQLDriver.java
|
2015-04-22 10:36:00 +02:00
|
|
|
@@ -28,6 +28,7 @@ import java.sql.Connection;
|
|
|
|
import java.sql.Driver;
|
|
|
|
import java.sql.DriverManager;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
+import java.sql.SQLFeatureNotSupportedException;
|
|
|
|
import java.util.Properties;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
|
|
@@ -103,7 +104,9 @@ public class FabricMySQLDriver extends N
|
|
|
|
return super.parseURL(url.replaceAll("fabric:", ""), defaults);
|
|
|
|
}
|
|
|
|
|
|
|
|
- public Logger getParentLogger() throws SQLException {
|
|
|
|
- throw new SQLException("no logging");
|
|
|
|
- }
|
|
|
|
+ @Override
|
|
|
|
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
|
|
+ throw new SQLFeatureNotSupportedException("Not supported");
|
2015-04-21 19:01:55 +02:00
|
|
|
+ }
|
2013-09-19 16:22:42 +02:00
|
|
|
+
|
|
|
|
}
|