Changeset 1bad318
- Timestamp:
- 04/09/10 14:02:26 (13 years ago)
- Branches:
- master, qt5
- Children:
- f548c17
- Parents:
- 5bd6aba
- Location:
- src/sql
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sql/schedulexmlparser.cpp
r5bd6aba r1bad318 37 37 38 38 QDomElement scheduleElement = document.firstChildElement("schedule"); 39 40 SqlEngine::beginTransaction(); 39 41 40 42 int confId = 0; … … 145 147 } // parsing day elements 146 148 } // schedule element 149 SqlEngine::commitTransaction(); 147 150 148 151 return confId; -
src/sql/sqlengine.cpp
r5bd6aba r1bad318 376 376 } 377 377 378 bool SqlEngine::beginTransaction() 379 { 380 QSqlDatabase db = QSqlDatabase::database(); 381 382 return execQuery(db, "BEGIN IMMEDIATE TRANSACTION"); 383 } 384 385 bool SqlEngine::commitTransaction() 386 { 387 QSqlDatabase db = QSqlDatabase::database(); 388 389 return execQuery(db, "COMMIT"); 390 } 391 378 392 bool SqlEngine::execQuery(QSqlDatabase &aDatabase, const QString &aQuery) 379 393 { -
src/sql/sqlengine.h
r5bd6aba r1bad318 38 38 static void addRoomToDB(QHash<QString,QString> &aRoom); 39 39 40 static bool beginTransaction(); 41 static bool commitTransaction(); 42 40 43 // search Events for .... 41 44 static int searchEvent(int conferenceId, const QHash<QString,QString> &columns, const QString &keyword);
Note: See TracChangeset
for help on using the changeset viewer.