This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am facing a problem with preparedStatement.executeUpdate(). My requirement is that I will execute an update query first and I need to log the result of executing query. My expectation is that, when no records are updated zero will be returned. But all the times it returns the number of rows matched. I tried even getUpdateCount(). Solution should work with both mysql and oracle.