If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Handle Exceptions of database importing from dump

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-26-07, 03:40
yaronr yaronr is offline
Registered User
 
Join Date: Jun 2007
Posts: 9
Handle Exceptions of database importing from dump

I'm restoring my MySQL database from java code.
I use Process for running a batch file and i need to roleback if there were any exceptions.
How can I track the exceptions?
Is there any way doing it with jdbc "Statements"?
Reply With Quote
  #2 (permalink)  
Old 07-26-07, 05:38
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
If you're not going to use stored procedures, then use transactions, savepoints, and rollbacks. It'll probably involve lots of Java if test cases though to see if the statements have executed properly.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On