I'd drop the non-compliant way of getting this value, and use what's
provided by JDBC 3.0 (available with JDK 1.4.x and ConnectorJ 3.x)
statement.getGeneratedKeys()
No casting required.
http://www.mysql.com/articles/autoincrement-with-connectorj.html
-Original Message-
From: Joe
back to before the first row. Is there already a
method to give me this data? I looked but couldn't find any...
Joe
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 1:05 PM
To: 'Tomcat Users List'
Subject: RE: JDBC + MySQL Datasource + Tomcat
PROTECTED]
Sent: Tuesday, July 22, 2003 4:10 PM
To: 'Tomcat Users List'
Subject: RE: JDBC + MySQL Datasource + Tomcat = ClassCastException
Ok - implemented the getGeneratedKeys() method and everything
works great.
Thank you very much Mike!
On another topic, is there any quick way