• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executeUpdate() returned is -1

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Please tell me executeUpdate() returned is -1 , what does this indicate ?

 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ooch, the specs (java.sql.Statement) say:
Returns:
either (1) the row count for SQL Data Manipulation Language (DML) statements or (2) 0 for SQL statements that return nothing

-1 is an undocumented return value? Please show your update statement.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

OR Do you mean getUpdateCount() ? which returns -1 when there no results.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic