From a802a3b6786e8d94b17acbb6d76826eb103e3d15 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 16 Oct 2018 12:36:16 +0200 Subject: Fix fileExists() query Change-Id: I6f71e5f47f1cb3e22594a7f596292d04c6e2a303 Reviewed-by: Kai Koehne --- src/assistant/help/qhelpcollectionhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp index 32ce01bf0..a3e44816a 100644 --- a/src/assistant/help/qhelpcollectionhandler.cpp +++ b/src/assistant/help/qhelpcollectionhandler.cpp @@ -780,8 +780,8 @@ bool QHelpCollectionHandler::fileExists(const QUrl &url) const if (fileInfo.namespaceName.isEmpty()) return false; - m_query->prepare(QLatin1String("SELECT COUNT (DISTINCT NamespaceTable.Id)" - "FROM" + m_query->prepare(QLatin1String("SELECT COUNT (DISTINCT NamespaceTable.Id) " + "FROM " "FileNameTable, " "NamespaceTable, " "FolderTable " -- cgit v1.2.3