Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Con.setAutoCommit(false) not working without Con.commit()

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Con.setAutoCommit(false), without Con.commit() not working
Saloon Keeper
Posts: 242
Firefox Browser MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, and welcome to the Ranch!

Can you give a little more detail? If you set autocommit to false the changes will not be reflected in your database until you commit them with .commit(). If you want the changes to be committed automatically, you should leave out the con.setAutoCommit(false). By default your changes will be committed automatically.
    Bookmark Topic Watch Topic
  • New Topic