Commitok összehasonlítása

..

1 Commit-ok

Szerző SHA1 Üzenet Dátum
a9d3f7897a shared: sqlitedbservice: Introduce exec(),execBool(). Refactor 2023-03-26 15:39:23 +02:00
2 fájl változott, egészen pontosan 2 új sor hozzáadva és 14 régi sor törölve

Fájl megtekintése

@ -25,22 +25,10 @@ SaveFileResult FileSaver::addFile(QString path)
QString absPath = info.absoluteFilePath();
auto mtime = info.lastModified().toSecsSinceEpoch();
bool exists = false;
if(this->fileSaverOptions.fillExistingContentless)
{
exists = this->dbService->fileExistsInDatabase(absPath, mtime, 'c');
}
else
{
exists = this->dbService->fileExistsInDatabase(absPath, mtime);
}
if(exists)
if(this->dbService->fileExistsInDatabase(absPath, mtime))
{
return SKIPPED;
}
return saveFile(info);
}

Fájl megtekintése

@ -151,7 +151,7 @@ QSqlQuery SqliteDbService::exec(QString querystr, std::initializer_list<QVariant
}
if(!query.exec())
{
throw LooqsGeneralException("Error while exec(): " + query.lastError().text());
throw LooqsGeneralException("Error while trying to query for file existance: " + query.lastError().text());
}
return query;
}