This commit is contained in:
Aaron Seigo 2011-04-28 18:02:23 +02:00 committed by Marco Martin
parent 1d550b15ea
commit 4ea98632da

View File

@ -162,6 +162,7 @@ void StorageJob::start()
query.bindValue(":valueGroup", valueGroup); query.bindValue(":valueGroup", valueGroup);
if (!query.exec()) { if (!query.exec()) {
m_rdb->database()->commit();
setResult(false); setResult(false);
return; return;
} }
@ -208,6 +209,7 @@ void StorageJob::start()
if (!query.exec()) { if (!query.exec()) {
//kDebug() << "query failed:" << query.lastQuery() << query.lastError().text(); //kDebug() << "query failed:" << query.lastQuery() << query.lastError().text();
m_rdb->database()->commit();
setResult(false); setResult(false);
return; return;
} }