Results 1 to 7 of 7

Thread: Unexpected behavior with commits and rollbacks...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2012
    Posts
    46
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    11

    Default Re: Unexpected behavior with commits and rollbacks...

    I guess because I work with Oracle daily and have for 15 years I was expecting to have to explicitly issue a "commit" before it got recorded - I don't have to open a transaction explicitly either. The only way a transaction is committed w/out issuing a "commit" is if I connect to another database with an open transaction.

    Quote Originally Posted by wysota View Post
    Every database I know immediately commits a query that is not part of an open transaction. I don't see what's so unexpected here.

    Added after 4 minutes:


    Now that I know I have to issue a db.transaction() I am planning on a single transaction because I need to rollback everything if something fails...

    As for the autocommit - because I work in Oracle and I suppose that must be turned off, as I said above I have to issue a commit and rollback for everything...Nothing is automatically committed with either the DB or the software that runs on top of it so I was caught a little off-guard with SQLite's auto commit...


    Kodi
    Last edited by mtnbiker66; 6th June 2012 at 12:31.

Similar Threads

  1. childNodes return unexpected nodes
    By julida in forum Qt Programming
    Replies: 1
    Last Post: 7th June 2011, 07:32
  2. Unexpected build errors in a Qt project
    By prykHetQuo in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2010, 21:33
  3. How can I manage an unexpected program crash?
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 22nd August 2009, 06:59
  4. QCoreApplication::postEvent: Unexpected null receiver
    By merlvingian in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2007, 20:25
  5. QTabWidget->setCornerWidget() unexpected resize.
    By hickscorp in forum Qt Programming
    Replies: 7
    Last Post: 20th December 2006, 14:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.