Return Value of REPLACE statement
Posted by: David Linsin
Date: February 08, 2008 07:26AM

Hi guys,

when I do something like

PreparedStatement.prepareStatement("REPLACE test VALUES(?,?)");
...
int rows = PreparedStatement.executeUpdate();

I would expect rows to be the number of rows affected, instead it returns 0 on mysql 5.0.45 under WinXP.

Could that be a bug or am I missing something else?

Regards, David
http://dlinsin.blogspot.com

Options: ReplyQuote


Subject
Written By
Posted
Return Value of REPLACE statement
February 08, 2008 07:26AM


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.