Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Rollback when any error occurrs  RSS feed

 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have transaction of statements .I am settings AutoCommit to false.But when an error occurs for data truncation in 2nd statement ,it not rollback the changes done by other statement .My need is whenever any error occurs ,the whole batch should be rllback.
Thanks
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!