Win7-64bit and the latest jdk 1.7-u21 and the associated jre.
Graham
With sqlite-jdbc-3.7.15-SNAPSHOT-2.jar I get the following exception thrown for the call to isNativeMode():
DatabaseMetaData meta = db_con.getMetaData();
System.out.println("is-native: " + db.isNativeMode());
Graham
--
You received this message because you are subscribed to a topic in the Google Groups "Xerial" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xerial/TQSei3NfG28/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to xerial+un...@googlegroups.com.
To post to this group, send email to xer...@googlegroups.com.
Visit this group at http://groups.google.com/group/xerial?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
if (System.getProperty("java.version").startsWith("1.5.")) {
...
} else{
throw new SQLException("Method isClosed() is only supported up to and including Java 5.");
}Graham,I mean to say that Java 1.5 doesn't have ResultSet.isClose()Peter,Rather than going off and making one off changes like this, I would just prefer build the driver on Java 6.
On Monday, May 13, 2013 8:34:12 AM UTC-4, gmseed wrote:
HiMy object "db" is an instance of a convenience class and my method isNativeMethod() simply passes on the call to SQLiteJDBCLoader:
public boolean isNativeMode() throws Exception{boolean isNative = SQLiteJDBCLoader.isNativeMode( );return isNative;}I just reran this and it now works fine, so not sure what was happening the other day.If isClosed() is limited to Java 5 and less then how about something along the lines:public boolean isClosed() throws SQLException {boolean closed = false;
if (System.getProperty("java. version").startsWith("1.5.")) {
... } else{ throw new SQLException("Method isClosed() is only supported up to and including Java 5."); }
return closed;}Graham
On Sunday, May 12, 2013 7:53:12 PM UTC+1, Grace B wrote:
The call to rs.isClosed() fails because this driver is compiled on Java 5 which does have this method.With regards to
With sqlite-jdbc-3.7.15-SNAPSHOT-2. jar I get the following exception thrown for the call to isNativeMode():
DatabaseMetaData meta = db_con.getMetaData();
System.out.println("is-native: " + db.isNativeMode());
What is the class for the variable "db".On Sun, May 12, 2013 at 10:35 AM, gmseed <gms...@gmail.com> wrote:Hi
Win7-64bit and the latest jdk 1.7-u21 and the associated jre.
Graham
--
You received this message because you are subscribed to a topic in the Google Groups "Xerial" group.
To unsubscribe from this topic, visit https://groups.google.com/d/ topic/xerial/TQSei3NfG28/ unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to xerial+un...@googlegroups.com.
To post to this group, send email to xer...@googlegroups.com.
Visit this group at http://groups.google.com/ group/xerial?hl=en.
For more options, visit https://groups.google.com/ groups/opt_out.