[javasqlite] Removed specific Java 6 requirement Added patch to build with JDBC 4.1/Java 7

Deepak Bhole dbhole at fedoraproject.org
Wed Jan 25 15:20:29 UTC 2012


commit 051fa075297d084111d9a7e16eec88de73ef39f8
Author: Deepak Bhole <dbhole at redhat.com>
Date:   Wed Jan 25 10:20:14 2012 -0500

    Removed specific Java 6 requirement
    Added patch to build with JDBC 4.1/Java 7

 javasqlite-javasqlite-jdbc-4.1.patch |  106 ++++++++++++++++++++++++++++++++++
 1 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/javasqlite-javasqlite-jdbc-4.1.patch b/javasqlite-javasqlite-jdbc-4.1.patch
new file mode 100644
index 0000000..e5ef1d9
--- /dev/null
+++ b/javasqlite-javasqlite-jdbc-4.1.patch
@@ -0,0 +1,106 @@
+diff -ur javasqlite-20110827.orig/SQLite/JDBC2z/JDBCConnection.java javasqlite-20110827/SQLite/JDBC2z/JDBCConnection.java
+--- javasqlite-20110827.orig/SQLite/JDBC2z/JDBCConnection.java	2011-08-27 04:25:38.000000000 -0400
++++ javasqlite-20110827/SQLite/JDBC2z/JDBCConnection.java	2012-01-24 15:48:24.000000000 -0500
+@@ -18,6 +18,9 @@
+ import java.sql.Struct;
+ import java.util.Properties;
+ 
++import java.sql.SQLFeatureNotSupportedException;
++import java.util.concurrent.Executor;
++
+ public class JDBCConnection
+     implements java.sql.Connection, SQLite.BusyHandler {
+ 
+@@ -581,6 +584,25 @@
+ 	return false;
+     }
+ 
++    public int getNetworkTimeout() throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++    public void setNetworkTimeout(Executor executor, int millis) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++    public void abort(Executor executor) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++    public String getSchema() throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++    public void setSchema(String schema) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
+ }
+ 
+ class DatabaseX extends SQLite.Database {
+diff -ur javasqlite-20110827.orig/SQLite/JDBC2z/JDBCDatabaseMetaData.java javasqlite-20110827/SQLite/JDBC2z/JDBCDatabaseMetaData.java
+--- javasqlite-20110827.orig/SQLite/JDBC2z/JDBCDatabaseMetaData.java	2011-08-27 04:25:48.000000000 -0400
++++ javasqlite-20110827/SQLite/JDBC2z/JDBCDatabaseMetaData.java	2012-01-24 15:50:42.000000000 -0500
+@@ -1864,4 +1864,12 @@
+ 	return false;
+     }
+ 
++    public boolean generatedKeyAlwaysReturned() throws SQLException {
++		throw new SQLException("unsupported");
++	}
++
++    public ResultSet getPseudoColumns(String catalog, String schemaPattern,
++                                      String tableNamePattern, String columnNamePattern) throws SQLException {
++		throw new SQLException("unsupported");
++	}
+ }
+diff -ur javasqlite-20110827.orig/SQLite/JDBC2z/JDBCResultSet.java javasqlite-20110827/SQLite/JDBC2z/JDBCResultSet.java
+--- javasqlite-20110827.orig/SQLite/JDBC2z/JDBCResultSet.java	2011-08-27 04:25:57.000000000 -0400
++++ javasqlite-20110827/SQLite/JDBC2z/JDBCResultSet.java	2012-01-24 15:52:37.000000000 -0500
+@@ -1799,4 +1799,11 @@
+ 	return false;
+     }
+ 
++    public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++    }
++
++    public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++    }
+ }
+diff -ur javasqlite-20110827.orig/SQLite/JDBC2z/JDBCStatement.java javasqlite-20110827/SQLite/JDBC2z/JDBCStatement.java
+--- javasqlite-20110827.orig/SQLite/JDBC2z/JDBCStatement.java	2011-01-15 03:44:02.000000000 -0500
++++ javasqlite-20110827/SQLite/JDBC2z/JDBCStatement.java	2012-01-24 15:53:46.000000000 -0500
+@@ -369,4 +369,11 @@
+ 	return false;
+     }
+ 
++    public void closeOnCompletion() throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++    }
++    
++	public boolean isCloseOnCompletion() throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++    }
+ }
+diff -ur javasqlite-20110827.orig/SQLite/JDBCDriver.java javasqlite-20110827/SQLite/JDBCDriver.java
+--- javasqlite-20110827.orig/SQLite/JDBCDriver.java	2011-08-27 04:22:41.000000000 -0400
++++ javasqlite-20110827/SQLite/JDBCDriver.java	2012-01-24 16:13:49.000000000 -0500
+@@ -6,6 +6,8 @@
+ import java.sql.SQLException;
+ import java.util.Properties;
+ 
++import java.util.logging.Logger;
++
+ public class JDBCDriver extends JDBC implements Driver {
+ 
+     public static final int MAJORVERSION = 1;
+@@ -46,4 +48,8 @@
+     public boolean jdbcCompliant() {
+ 	return false;
+     }
++
++    public Logger getParentLogger() throws SQLException {
++        throw new SQLException("Not supported");
++    }
+ }


More information about the scm-commits mailing list