Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No errors but no update on table

 
Rob Lynn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code:



When I step through the code it seems to be fine - no exceptions thrown, etc. However, the change does not appear in the database. I have the correct database name in server.xml. Why would this be failing? BTW, I am trying this because when I tried Spring's jdbc, the table would be corrupted each time, and I had to delete the table and start over.
[ August 18, 2005: Message edited by: Bear Bibeault ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34372
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob,
Can you insert a println or check in the debugger that the commit is getting executed?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you certain that the row to be updated exists in the DB?

Also, I'd prefer to do this, it's much more obvious what you are trying to do:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic