How do we know that the trasaction function is called ?
And is there any side effects if It's called more than once as shown below
Qt Code:
  1. QSqlDatabase* db = QSqlDatabase::database();
  2. db->transaction();
  3. // ......
  4. // ......
  5. db->transaction();
  6. // ......
  7. // ......
  8. db->rollback();
To copy to clipboard, switch view to plain text mode