Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete succeed but return 0  RSS feed

 
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
Boost this thread!