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 execute() method doesn't execute. 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 "execute() method doesn Watch "execute() method doesn New topic
Author

execute() method doesn't execute.

Ketul Parikh
Greenhorn

Joined: Jul 17, 2009
Posts: 14
Hi All,

A problem which I fail to understand...

Everything above the ps.execute() is executed, everything below the ps.execute() is executed, which means no exception is generated by execute() method.

Which means that the query is successfully executed. But since my query was of insert, i could very well verify that no record was inserted.

Has anybody encountered this problem before? Is there any possibility that this is a problem, may be due to database?

Can someone help?


KETUL
Karthik Shiraly
Bartender

Joined: Apr 04, 2009
Posts: 671
    
  13

Hi,

Was the insert done in a transaction and was it committed?
Also, what database are you using?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: execute() method doesn't execute.
 
It's not a secret anymore!