I have the following to load the driver:
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
then get a connection to the db, and then create a statement with:
stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
When I try to update my result set with rs.updateString(1, "Hello") I
get the following:
java.sql.SQLException: ResultSet not updatable
at org.gjt.mm.mysql.jdbc2.ResultSet.generateStatements(ResultSet.java:2283)
at org.gjt.mm.mysql.jdbc2.ResultSet.syncUpdate(ResultSet.java:2346)
at org.gjt.mm.mysql.jdbc2.ResultSet.updateString(ResultSet.java:1066)
at JDBCDemo.main(JDBCDemo.java:21)
It seems like the early methods in the stack trace wouldn't exist if
the possibility of updatable didn't exist, but despite my request for
updatable, the result set apparently isn't. I'm not doing anything
fancy in the query--no joins or anything--just a simple select a
couple fields from a table.
Any thoughts?
Does the source for the Driver and associated classes exist anywhere I
can get a look at them?
Steve
-Mark
"Steve" <pimen...@cs.com> wrote in message
news:4030dd43.02040...@posting.google.com...
Thanks for the assistance.
FYI, in the version I downloaded, mm.mysql-2.0.4-bin.jar, the README file does
not mention anything about this.
Steve
"PimentoTR6" <pimen...@cs.compost> wrote in message
news:20020414101912...@mb-de.news.cs.com...