Results 1 to 3 of 3

Thread: Using transactions

  1. #1
    Join Date
    Apr 2010
    Posts
    77
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Using transactions

    Hi all.

    I just wanted to make sure:

    When using a single database default connection:
    If I have method A which begins a database transaction and then calls method B
    Method B executes query 1 and returns to Method A.
    Method A then executes query 2 and then commits.

    I'm assuming that both Query 1 and 2 are both part of the same transaction.

    Correct?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using transactions

    Yes, You are correct.

  3. #3
    Join Date
    Apr 2010
    Posts
    77
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Using transactions

    Thanks heaps.

Similar Threads

  1. SQL transactions with QSqlQueryModel/QTableView
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 15th June 2009, 18:52
  2. SQLITE Transactions
    By mcosta in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2009, 19:45
  3. Rollback transactions in QDataTable
    By bubba in forum Qt Programming
    Replies: 0
    Last Post: 25th July 2007, 09:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.