File mysql-connector-java-5.1.6-java6-compatibility.patch of Package mysql-connector-java

--- src/com/mysql/jdbc/CallableStatement.java
+++ src/com/mysql/jdbc/CallableStatement.java
@@ -38,6 +38,10 @@
 import java.sql.Time;
 import java.sql.Timestamp;
 import java.sql.Types;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.RowId;
+import java.sql.SQLFeatureNotSupportedException;
 import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.HashMap;
@@ -2349,4 +2353,77 @@
 		
 	}
 
+	// Java6 build - interface java.sql.CallableStatement
+
+	public RowId getRowId(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public RowId getRowId(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setRowId(String parameterName, RowId x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNString(String parameterName, String value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(String parameterName, NClob value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob getNClob (int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob getNClob (String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML getSQLXML(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML getSQLXML(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public String getNString(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public String getNString(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getNCharacterStream(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getNCharacterStream(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getCharacterStream(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getCharacterStream(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(String parameterName, Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/ConnectionImpl.java
+++ src/com/mysql/jdbc/ConnectionImpl.java
@@ -34,6 +34,12 @@
 import java.sql.SQLException;
 import java.sql.SQLWarning;
 import java.sql.Savepoint;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
 import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.GregorianCalendar;
@@ -5519,4 +5525,58 @@
 			iter.doForAll();
 		}
 	}
-}
\ No newline at end of file
+
+	// Java6 build - interface java.sql.Connection
+
+	public Clob createClob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Blob createBlob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob createNClob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML createSQLXML() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isValid(int timeout) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClientInfo(String name, String value) throws SQLClientInfoException {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public void setClientInfo(Properties properties) throws SQLClientInfoException {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public String getClientInfo(String name) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Properties getClientInfo() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+ 	   throw new SQLFeatureNotSupportedException();
+	}
+}
--- src/com/mysql/jdbc/DatabaseMetaData.java
+++ src/com/mysql/jdbc/DatabaseMetaData.java
@@ -30,6 +30,13 @@
 import java.sql.SQLException;
 import java.sql.Statement;
 import java.sql.Types;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
+import java.sql.RowIdLifetime;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
@@ -8087,4 +8094,30 @@
 	public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException {
 		return true;
 	}
+
+	// Java6 build - interface java.sql.DatabaseMetaData
+
+	public RowIdLifetime getRowIdLifetime() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public ResultSet getClientInfoProperties() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+ 	   throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/PreparedStatement.java
+++ src/com/mysql/jdbc/PreparedStatement.java
@@ -46,6 +46,11 @@
 import java.sql.Time;
 import java.sql.Timestamp;
 import java.sql.Types;
+import java.sql.RowId;
+import java.sql.Blob;
+import java.sql.NClob;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.SQLXML;
 import java.text.ParsePosition;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
@@ -5137,4 +5142,19 @@
 	public String getPreparedSql() {
 		return this.originalSql;
 	}
+
+	// Java6 build - interface java.sql.PreparedStatement
+
+	public void setRowId(int parameterIndex, RowId x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(int parameterIndex, NClob value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
 }
--- src/com/mysql/jdbc/ReplicationConnection.java
+++ src/com/mysql/jdbc/ReplicationConnection.java
@@ -31,6 +31,20 @@
 import java.util.Map;
 import java.util.Properties;
 import java.util.TimeZone;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
+import java.sql.Clob;
+import java.sql.NClob;
+import java.sql.Blob;
+import java.sql.SQLXML;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.SQLClientInfoException;
+import java.sql.Array;
 
 import com.mysql.jdbc.log.Log;
 
@@ -2328,4 +2342,58 @@
 	public void setInGlobalTx(boolean flag) {
 		this.currentConnection.setInGlobalTx(flag);
 	}
+
+	// Java6 build - interface java.sql.Connection
+
+	public Clob createClob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Blob createBlob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob createNClob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML createSQLXML() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isValid(int timeout) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClientInfo(String name, String value) throws SQLClientInfoException {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public void setClientInfo(Properties properties) throws SQLClientInfoException {
+            throw new RuntimeException("SQLFeatureNotSupported");	
+	}
+
+	public String getClientInfo(String name) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Properties getClientInfo() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/ResultSetImpl.java
+++ src/com/mysql/jdbc/ResultSetImpl.java
@@ -30,6 +30,7 @@
 import java.io.ObjectInputStream;
 import java.io.StringReader;
 import java.io.UnsupportedEncodingException;
+import java.io.Reader;
 import java.lang.reflect.Constructor;
 import java.math.BigDecimal;
 import java.math.BigInteger;
@@ -43,6 +44,12 @@
 import java.sql.Time;
 import java.sql.Timestamp;
 import java.sql.Types;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
 import java.util.Calendar;
 import java.util.GregorianCalendar;
 import java.util.HashMap;
@@ -8691,4 +8698,206 @@
 		
 		return this.gmtCalendar;
 	}
+
+	// Java6 build - interface java.sql.ResultSet
+
+	public RowId getRowId(int columnIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public RowId getRowId(String columnLabel) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateRowId(int columnIndex, RowId x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateRowId(String columnLabel, RowId x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public int getHoldability() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isClosed() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNString(int columnIndex, String nString) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNString(String columnLabel, String nString) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob getNClob(int columnIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob getNClob(String columnLabel) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML getSQLXML(int columnIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML getSQLXML(String columnLabel) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public String getNString(int columnIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public String getNString(String columnLabel) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getNCharacterStream(int columnIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getNCharacterStream(String columnLabel) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNCharacterStream(String columnLabel, java.io.Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateAsciiStream(String columnLabel, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBinaryStream(String columnLabel, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateCharacterStream(String columnLabel, java.io.Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateClob(int columnIndex,  Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateClob(String columnLabel,  Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNClob(int columnIndex,  Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNClob(String columnLabel,  Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNCharacterStream(String columnLabel, java.io.Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateCharacterStream(int columnIndex, java.io.Reader x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateAsciiStream(String columnLabel, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBinaryStream(String columnLabel, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateCharacterStream(String columnLabel, java.io.Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateClob(int columnIndex,  Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateClob(String columnLabel,  Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNClob(int columnIndex,  Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void updateNClob(String columnLabel,  Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
+++ src/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.java
@@ -38,6 +38,12 @@
 import java.sql.SQLException;
 import java.sql.Time;
 import java.sql.Timestamp;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
 import java.util.Calendar;
 import java.util.Map;
 
@@ -2633,4 +2639,141 @@
 //		throw SQLError.notImplemented();
 //	}
 
+	// Java6 build - interface java.sql.CallableStatement
+
+	public RowId getRowId(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public RowId getRowId(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setRowId(String parameterName, RowId x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNString(String parameterName, String value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(String parameterName, NClob value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClob(String parameterName, Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob getNClob (int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob getNClob (String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML getSQLXML(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML getSQLXML(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public String getNString(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public String getNString(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getNCharacterStream(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getNCharacterStream(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getCharacterStream(int parameterIndex) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public java.io.Reader getCharacterStream(String parameterName) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBlob (String parameterName, Blob x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClob (String parameterName, Clob x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setAsciiStream(String parameterName, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBinaryStream(String parameterName, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setCharacterStream(String parameterName, java.io.Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setAsciiStream(String parameterName, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBinaryStream(String parameterName, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setCharacterStream(String parameterName, java.io.Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNCharacterStream(String parameterName, Reader value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClob(String parameterName, Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBlob(String parameterName, InputStream inputStream) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(String parameterName, Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
+++ src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
@@ -28,7 +28,19 @@
 import java.sql.SQLException;
 import java.sql.Savepoint;
 import java.sql.Statement;
+import java.sql.Clob;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
+import java.sql.Blob;
+import java.sql.NClob;
+import java.sql.Array;
+
 import java.util.TimeZone;
+import java.util.Properties;
 
 import com.mysql.jdbc.Connection;
 import com.mysql.jdbc.Extension;
@@ -2538,4 +2550,58 @@
 	public void setSelfDestructOnPingSecondsLifetime(int seconds) {
 		this.mc.setSelfDestructOnPingSecondsLifetime(seconds);
 	}
+
+	// Java6 build - interface java.sql.Connection
+
+	public Clob createClob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Blob createBlob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public NClob createNClob() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public SQLXML createSQLXML() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isValid(int timeout) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClientInfo(String name, String value) throws SQLClientInfoException {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public void setClientInfo(Properties properties) throws SQLClientInfoException {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public String getClientInfo(String name) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Properties getClientInfo() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
+++ src/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.java
@@ -34,6 +34,7 @@
 import javax.naming.Referenceable;
 import javax.naming.StringRefAddr;
 import javax.sql.DataSource;
+import java.sql.SQLFeatureNotSupportedException;
 
 import com.mysql.jdbc.ConnectionPropertiesImpl;
 import com.mysql.jdbc.NonRegisteringDriver;
@@ -429,4 +430,14 @@
 //	public <T> T unwrap(Class<T> iface) throws SQLException {
 //		throw SQLError.notImplemented();
 //	}
+
+	// Java6 build - interface java.sql.Wrapper
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
+++ src/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.java
@@ -26,6 +26,7 @@
 import java.lang.reflect.Constructor;
 import java.sql.Connection;
 import java.sql.SQLException;
+import javax.sql.StatementEventListener;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
@@ -33,6 +34,7 @@
 import javax.sql.ConnectionEvent;
 import javax.sql.ConnectionEventListener;
 import javax.sql.PooledConnection;
+import java.sql.SQLFeatureNotSupportedException;
 
 import com.mysql.jdbc.ConnectionImpl;
 import com.mysql.jdbc.SQLError;
@@ -247,4 +249,14 @@
 			}
 		}
 	}
-}
\ No newline at end of file
+
+	// Java6 build - interface javax.sql.PooledConnection
+
+	public void addStatementEventListener(StatementEventListener listener) {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public void removeStatementEventListener(StatementEventListener listener) {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+}
--- src/com/mysql/jdbc/jdbc2/optional/MysqlXAConnection.java
+++ src/com/mysql/jdbc/jdbc2/optional/MysqlXAConnection.java
@@ -27,6 +27,7 @@
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
+import java.sql.SQLFeatureNotSupportedException;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
@@ -34,6 +35,7 @@
 import java.util.Map;
 
 import javax.sql.XAConnection;
+import javax.sql.StatementEventListener;
 import javax.transaction.xa.XAException;
 import javax.transaction.xa.XAResource;
 import javax.transaction.xa.Xid;
@@ -674,4 +676,14 @@
 		
 		return connToWrap;
 	}
+
+	// Java6 build - interface javax.sql.PooledConnection
+
+	public void addStatementEventListener(StatementEventListener listener) {
+		throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public void removeStatementEventListener(StatementEventListener listener) {
+		throw new RuntimeException("SQLFeatureNotSupported");
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
+++ src/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.java
@@ -41,6 +41,12 @@
 import java.sql.SQLException;
 import java.sql.Time;
 import java.sql.Timestamp;
+import java.sql.NClob;
+import java.sql.SQLXML;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.sql.Struct;
+import java.sql.RowId;
 import java.util.Calendar;
 
 import com.mysql.jdbc.SQLError;
@@ -1223,4 +1229,86 @@
 //	public Object unwrap(Class arg0) throws SQLException {
 //		throw SQLError.notImplemented();
 //	}
+
+	// Java6 build - interface java.sql.PreparedStatement
+
+	public void setRowId(int parameterIndex, RowId x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNString(int parameterIndex, String value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(int parameterIndex, NClob value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setCharacterStream(int parameterIndex, java.io.Reader reader, long length) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setAsciiStream(int parameterIndex, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBinaryStream(int parameterIndex, java.io.InputStream x) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setCharacterStream(int parameterIndex, java.io.Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setClob(int parameterIndex, Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setNClob(int parameterIndex, Reader reader) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
+++ src/com/mysql/jdbc/jdbc2/optional/StatementWrapper.java
@@ -30,6 +30,7 @@
 import java.sql.SQLException;
 import java.sql.SQLWarning;
 import java.sql.Statement;
+import java.sql.SQLFeatureNotSupportedException;
 
 import com.mysql.jdbc.SQLError;
 import com.mysql.jdbc.Util;
@@ -864,4 +865,26 @@
 			checkAndFireConnectionError(sqlEx);
 		}
 	}
+
+	// Java6 build - interface java.sql.Statement
+
+	public boolean isClosed() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public void setPoolable(boolean poolable) throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isPoolable() throws SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
+
+	public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException {
+	    throw new SQLFeatureNotSupportedException();
+	}
 }
--- src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java
+++ src/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.java
@@ -7,6 +7,8 @@
 import java.util.Map;
 
 import javax.sql.XAConnection;
+import javax.sql.StatementEventListener;
+import java.sql.SQLFeatureNotSupportedException;
 import javax.transaction.xa.XAException;
 import javax.transaction.xa.XAResource;
 import javax.transaction.xa.Xid;
@@ -184,4 +186,14 @@
 			this.currentXAConnection.close();
 		}
 	}
+
+	// Java6 build - interface javax.sql.PooledConnection
+
+	public void addStatementEventListener(StatementEventListener listener) {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
+
+	public void removeStatementEventListener(StatementEventListener listener) {
+	    throw new RuntimeException("SQLFeatureNotSupported");
+	}
 }
openSUSE Build Service is sponsored by