fixup! shared: sqlitedbservice: Introduce exec(),execBool(). Refactor
This commit is contained in:
		@@ -15,7 +15,7 @@ QVector<SearchResult> SqliteDbService::search(const LooqsQuery &query)
 | 
			
		||||
 | 
			
		||||
std::optional<QChar> SqliteDbService::queryFileType(QString absPath)
 | 
			
		||||
{
 | 
			
		||||
	auto query = exec("SELCET filetype FROM file WHERE path = ?", {absPath});
 | 
			
		||||
	auto query = exec("SELECT filetype FROM file WHERE path = ?", {absPath});
 | 
			
		||||
	if(!query.next())
 | 
			
		||||
	{
 | 
			
		||||
		return {};
 | 
			
		||||
@@ -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 exec(): " + query.lastError().text() + " for query: " + querystr);
 | 
			
		||||
	}
 | 
			
		||||
	return query;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Referens i nytt ärende
	
	Block a user