Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Delete succeed but return 0

 
Susilo Saja
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I called PreparedStatement.executeUpdate, passed in a delete statement which delete one row. It succeed, but it return 0. I've checked the database and it's really deleted. This delete statement is just a very simple sql statement that use one where condition.
Then I try to change the statement to delete something in other table, still the same database, in that same code, and it return the correct row count.
What is the possibility of this problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic