• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto commit???

 
Jon Tsatsonis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone answer my question?
If I set a connections autocommit mode to false, execute a couple of SQL statements and then commit. Will the connection still have autocommit mode set to false? Or does calling the explicit .commit method automatically set autocommit to true again?
Thanks for any help.
Jon.
 
Tom P
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The connection will still be set to auto commit being false. You can test this yourself by running the getAutoCommit() method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic