From ed4228326e7c6e60fbbeadf3f8fc659116de4e7d Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 2 Apr 2023 18:35:35 +0200 Subject: [PATCH] fixup! shared: sqlitedbservice: Introduce exec(),execBool(). Refactor --- shared/sqlitedbservice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/sqlitedbservice.cpp b/shared/sqlitedbservice.cpp index 262dd3d..ede4e26 100644 --- a/shared/sqlitedbservice.cpp +++ b/shared/sqlitedbservice.cpp @@ -15,7 +15,7 @@ QVector SqliteDbService::search(const LooqsQuery &query) std::optional 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