Hi
We should be building using Java6, but perhaps something has gone wrong,
our auto-builder has been unhappy lately.
See here for checking out from SVN and building from source:
http://h2database.com/html/build.html#using_eclipse
Also, right now, google-code is messing around and won't allow me to
commit to SVN, so you'll need to apply the attached patch to the checked
out code in order to test.
Regards, Noel.
On 2013-06-28 11:15, S_D wrote:
Noel, thanks a lot for your concern!
But I still can't succeed of getting this work. It's relly hard to
make WebSphere be happy(
Did you compile classes for this jar using Java 7? The problem is that
WebSphere uses IBM JDK v. 6.0. Could you please point me where I can
find sources and what should I fix in them to make this getClientInfo
method work. Then I'll build them with IBM java and probably it will help.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.
Index: src/docsrc/html/changelog.html
===================================================================
--- src/docsrc/html/changelog.html (revision 4901)
+++ src/docsrc/html/changelog.html (working copy)
@@ -49,6 +49,7 @@
</li><li>change the PageStore#changeCount field from an int to a long,
to cope with databases with very high transaction rates.
</li><li>Fix NPE when attempting to add foreign key reference to Table View.
+</li><li>Add sufficient ClientInfo support to our javax.sql.Connection
implementation to make WebSphere happy.
</li></ul>
<h2>Version 1.3.172 (2013-05-25)</h2>
Index: src/main/org/h2/jdbc/JdbcConnection.java
===================================================================
--- src/main/org/h2/jdbc/JdbcConnection.java (revision 4901)
+++ src/main/org/h2/jdbc/JdbcConnection.java (working copy)
@@ -1600,36 +1600,44 @@
}
/**
- * [Not supported] Set a client property.
+ * Set a client property.
*/
@Override
public void setClientInfo(String name, String value)
throws SQLClientInfoException {
+ checkClosed();
+ // we don't have any client properties, so just throw
throw new SQLClientInfoException();
}
/**
- * [Not supported] Set the client properties.
+ * Set the client properties.
*/
@Override
public void setClientInfo(Properties properties) throws
SQLClientInfoException {
+ checkClosed();
+ // we don't have any client properties, so just throw
throw new SQLClientInfoException();
}
/**
- * [Not supported] Get the client properties.
+ * Get the client properties.
*/
@Override
public Properties getClientInfo() throws SQLClientInfoException {
- throw new SQLClientInfoException();
+ checkClosed();
+ // we don't have any client properties, so return null
+ return null;
}
/**
- * [Not supported] Set a client property.
+ * Set a client property.
*/
@Override
public String getClientInfo(String name) throws SQLException {
- throw unsupported("clientInfo");
+ checkClosed();
+ // we don't have any client properties, so just throw
+ throw new SQLClientInfoException();
}
/**