Rodrigo Schmidt wrote:
I am not trying to use a ResultSet to update values. I am using a preparedStatement, and setBytes and setBlob are not implemented for it in Monet's driver (these calls throw SQLException).
Consider setBytes() method of PreparedStatement implemented now. Index: nl/cwi/monetdb/jdbc/MonetPreparedStatement.java =================================================================== RCS file: /cvsroot/monetdb/sql/src/jdbc/nl/cwi/monetdb/jdbc/MonetPreparedStatement.java,v retrieving revision 1.28 diff -u -r1.28 MonetPreparedStatement.java --- nl/cwi/monetdb/jdbc/MonetPreparedStatement.java 28 Jun 2005 19:36:36 -00001.28 +++ nl/cwi/monetdb/jdbc/MonetPreparedStatement.java 12 Aug 2005 11:01:35 -0000 @@ -530,7 +530,12 @@ * @throws SQLException if a database access error occurs */ public void setBytes(int parameterIndex, byte[] x) throws SQLException { - throw new SQLException("Operation currently not supported!"); + try { + setString(parameterIndex, new String(x, "UTF-8")); + } catch (UnsupportedEncodingException e) { + // this should never happen + throw new AssertionError(e.toString()); + } } /** I think my MUA screws up the diff, so it's only here for you to see what I did.
addpropvalue.setString(1,v); addpropvalue.executeUpdate(); // execution stalls at this point.
I'd like to have the log for this point. It's obviously waiting for something, and it looks like either the client or server violates the protocol in an undeterminable way.