Re: preparedStatement.getGeneratedKeys() exception.
Posted by: F. Mathews
Date: January 03, 2005 09:54PM

Matthews,

I am Informix long time veteran, trying to evaluate MySQL I am having some what related problem in trying to , which give me below stated the exception:

com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Retrieving auto generated keys is not supported.

While trying to perform:

cStmt = conn.prepareCall("INSERT INTO statement_test (id,strdata1) "
+ " values (0,'blah')");
cStmt.setFetchSize(1);
cStmt.execute();

int autoIncKeyFromApi = -1;
rs = cStmt.getGeneratedKeys();
_______^__________________________

I am using MaxDB by MySQL

--
Mathews

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.