Changeset 0c71a07 in confclerk_git


Ignore:
Timestamp:
09/27/17 21:36:00 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
c19618d
Parents:
d03ca41
git-author:
Philipp Spitzer <philipp@…> (09/27/17 21:32:19)
git-committer:
Philipp Spitzer <philipp@…> (09/27/17 21:36:00)
Message:

Implement rollbackTransaction().

Location:
src/sql
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    rd03ca41 r0c71a07  
    398398
    399399
     400bool SqlEngine::rollbackTransaction() {
     401    QSqlQuery query(db);
     402    bool success = query.exec("ROLLBACK");
     403    emitSqlQueryError(query);
     404    return success;
     405}
     406
     407
    400408bool SqlEngine::deleteConference(int id) {
    401409    QSqlQuery query(db);
     
    432440    emit dbError(error.text());
    433441}
    434 
  • src/sql/sqlengine.h

    rd03ca41 r0c71a07  
    6969        bool beginTransaction();
    7070        bool commitTransaction();
     71        bool rollbackTransaction();
    7172
    7273        /// search Events for .... returns true if success
Note: See TracChangeset for help on using the changeset viewer.