This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes No errors but no update on table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "No errors but no update on table" Watch "No errors but no update on table" New topic
Author

No errors but no update on table

Rob Lynn
Greenhorn

Joined: Jun 27, 2005
Posts: 28
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

Joined: May 26, 2003
Posts: 32481
    
214

Rob,
Can you insert a println or check in the debugger that the commit is getting executed?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
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:



SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: No errors but no update on table
 
It's not a secret anymore!