From 4ea98632da1f95072a2bc5f3f81982f249d23158 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 28 Apr 2011 18:02:23 +0200 Subject: [PATCH] paranoia --- private/storage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/private/storage.cpp b/private/storage.cpp index c5433834c..443b7a835 100644 --- a/private/storage.cpp +++ b/private/storage.cpp @@ -162,6 +162,7 @@ void StorageJob::start() query.bindValue(":valueGroup", valueGroup); if (!query.exec()) { + m_rdb->database()->commit(); setResult(false); return; } @@ -208,6 +209,7 @@ void StorageJob::start() if (!query.exec()) { //kDebug() << "query failed:" << query.lastQuery() << query.lastError().text(); + m_rdb->database()->commit(); setResult(false); return; }