Set PRAGMA synchronous to NORMAL

This commit is contained in:
Klaas Freitag 2013-11-15 17:42:48 +01:00
parent b0f6628584
commit 098e04c13f

View file

@ -126,6 +126,12 @@ bool SyncJournalDb::checkConnect()
return false;
}
QSqlQuery pragma1("PRAGMA synchronous = NORMAL;", _db);
if (!pragma1.exec()) {
qWarning() << "Error creating table downloadinfo : " << pragma1.lastError().text();
return false;
}
bool rc = updateDatabaseStructure();
if( rc ) {
_getFileRecordQuery.reset(new QSqlQuery(_db));