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


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: 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')");

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

I am using MaxDB by MySQL


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.